You should be able to get the IP of the box calling your servlet from the
HttpServletRequest object like:

String clientIPAddr = request.getRemoteAddr();

You could then match this up with an expected IP or any number of other
methods to determine who called you.






Jen <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
02/06/2003 02:41 PM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java               Servlet API Technology."


        To:     [EMAIL PROTECTED]
        cc:
        Subject:        How do i know who called my servlet


Hi,
I have a servlet that called by other party, i would
like to do the statistics about who called us. how do
i know where the request coming from?

Thanks

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

___________________________________________________________________________
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