title: Client socket - get IP - java
body: <p>I am implementing a TCP connection with sockets and I need to get the IP of the client socket on the server side. I have used the <code>socketName.getRemoteSocketAddress()</code> which indeed returns the IP address followed by the port id I am using! how can I get just the address and not the port?</p>