Socket.getLocalPort

Socket.getLocalPort

Class Overview | Class Members | This Package | All Packages

Syntax
public int getLocalPort()
Returns
the local port number to which this socket is connected.
Description
Returns the local port to which this socket is bound.