Make sure myport is set correctly when running with Port = 0.