How can i get the IP Address of a request
Posted on 2011-05-04
In my environment we have "Apache Server"-> WebDispatcher->Web Application Server.
In my JSP which is running on Web AS i want to get the IP Address of the User who enters the URL on any of the client machine.
var ip = '<%=request.getRemoteAddr()%>';
to get the IP Address . Problem which i'm facing is due to this i'm getting the IP Address of Web Dispatcher, as Web Dispatcher is sending request to this URL .
I want to get the IP Address of the Actual User.
How can i get the IP address of the USer.