Originally Posted by arindam.lahiri
I dont think you will be able to get the real IP address of the client using the Java Http Servlet API. The request.getRemoteAddr() will give you the IP address of proxy server the client is behind.
Usually there is variable set by the proxy which put the real ip adress in a header variable called something like client_ip
. But it depends on the proxy, reverse-proxy, etc.