request.getRemoteAddr() will get the user's IP Address
        requet.getRemoteHost() will do DNS lookup on the address

        request.getHeader("Referrer") is the referrer, I believe.

        Randy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 10:55 AM
To: [EMAIL PROTECTED]
Subject: RE: User IP Address


Should be able to query the HTTPServletRequest object to get this
information, try looking there
-----Original Message-----
From: Mark Muffett [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 9:50 AM
To: [EMAIL PROTECTED]
Subject: User IP Address


Anyone know if it's possible to use JSP / Tomcat to get user IP addresses
(for logging)? - or any other user info that might go to the server (like
referrer)?
 
Ideas and sample code would be very welcome...
 
Thanks
 
Mark

Reply via email to