Hello,

Use these methods to get the web server parameters, REMOTE_ADDR and
REMOTE_HOST respectively, okay?

        req.getRemoteAddr();
        req.getRemoteHost();

Thanx, Bye,
Pankaj

TeckSeng Tan <[EMAIL PROTECTED]> wrote:
Hi all,

How does a Servelt get the IP of the web client or the proxy that he comes
from?

I know that such info is in fact logged into a file but how do I access it
via servlet?

Thx in advance.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to