tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Muffett" <ma...@its-axiom.com>
Subject Re: User IP Address
Date Fri, 22 Jun 2001 15:16:29 GMT
Brilliant! works perfectly.  Now to write the logging program...

Thanks

Mark

----- Original Message ----- 
From: "Randy Layman" <randy.layman@aswethink.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, June 22, 2001 3:23 PM
Subject: RE: User IP Address


> 
> 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: SHeyns@LandmarkFeeds.com [mailto:SHeyns@LandmarkFeeds.com]
> Sent: Friday, June 22, 2001 10:55 AM
> To: tomcat-user@jakarta.apache.org
> 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:markm@its-axiom.com]
> Sent: Friday, June 22, 2001 9:50 AM
> To: tomcat-user@jakarta.apache.org
> 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
> 


Mime
View raw message