remotePort property

int get remotePort

The remote port connected to by this socket.

Throws a SocketException if the socket is closed. The port is 0 if the socket is a Unix domain socket.

Implementation

int get remotePort;