Hi,
you can use the following method of javax.servlet.ServletRequest interface.
public java.lang.String getRemoteAddr()
Returns the Internet Protocol (IP) address of the client that sent the request. For HTTP
servlets, same as the value of the CGI variable REMOTE_ADDR.
Returns:
a
String containing the IP address of the client that sent the request.
Call this method on the implicit ServletRequest object. i.e "request.getRemoteAddr()".
Cheers
NOTE: If the actual client is behind firewall or Proxy Server, you will get the IP Address of Proxy Server.
[ August 19, 2002: Message edited by: L Goundalkar ]