Socket.RemotePort (gb.net)

Property Read RemotePort As Integer

Once a TCP connection is established, this property reflects remote port (1-65535) used by this connection.