Socket.getRemoteSocketAddress() not returning private IP address of client
<p>I have a client server program where the client is running on a pc with two ip address (public ip address visible via internet and private ip address). My server is running on a different network. When i connect both client and server using socket and use socket.getRemoteSocketAddress method of java at the server end, i get the public ip address of the client connection. Even if i use the InetAddress.getByName(socket.getInetAddress().getHostName) i still get the public address.</p>

<p>The problem is that i need the private address to be printed. Can you please let me know how can i achieve this? </p>
