peerport

peerport

Returns the port number for the remote host to which a socket connects.