Edit Edit

Java Servlet FAQ

How do you find out what client machine is making a request to your servlet?

The ServletRequest class has functions for finding out the IP address or host name of the client machine:

public String getRemoteAddr()gets the IP address of the client machine
public String getRemoteHost()gets the host name of the client machine

Last updated 12/26/1999 05:35:40 PM