Use getRemoteAddr() to get the client's IP address.
I the servlet configuration file add two parameters
(intranet low and high IP address) that define
the range of intranet IP addresses. You can
even add multiple pairs (for multiple ranges)

DD

----------
From:   HeeMeng[SMTP:[EMAIL PROTECTED]]
Sent:   Monday, October 18, 1999 11:08 AM
To:     [EMAIL PROTECTED]
Subject:        Technique For Detecting Client

Hi,

Anyone knows how to detect if a servlet or jsp request
originates from a intranet or internet client?

Thanks for any help or suggestion.

Regards

___________________________________________________________________________
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

___________________________________________________________________________
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