Re: How do i know who called my servlet

Jen <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
That's why i am not willing to use ip. Can I get the
domain name the request coming from?

Thanks

--- Adrian Janssen <[email protected]> wrote:
> Be aware though that machines behind a proxy will
> share the same IP, on an
> internet we-site this can account for 30% of all
> hits.
>
> > -----Original Message-----
> > From: Chuck Hirstius
> [SMTP:[email protected]]
> > Sent: 06 February 2003 10:49
> > To:   [email protected]
> > Subject:      Re: How do i know who called my
> servlet
> >
> > 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
> >
> >
>

__________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.