public InetAddress getInetAddress ()

Returns the address to which the socket is connected.

If the socket was connected prior to being closed, then this method will continue to return the connected address after the socket is closed.

Returns:  the remote IP address to which this socket is connected, or null if the socket is not connected.