My client pc is connected to as server pc via sockets over Ethernet, How do I find the IP of this client from the server side code. The server is dishing out one socket
Use this code :
String ip=(((InetSocketAddress) socket.getRemoteSocketAddress()).getAddress()).toString().replace("/","");