This content has been marked as final.
Show 1 reply
-
1. Re: How to get client ip inside the server running?
andrewboyd Jun 14, 2006 2:02 PM (in response to laok2003)You might try HttpRequest.getRemoteHost()
From the javadoc:
Returns the fully qualified name of the client that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST.