port also copied from sock in managed mode