Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I log someone's IP address?

Status
Not open for further replies.

argus77

Programmer
Dec 10, 2002
3
CA
Say I want to get everyone's IP address who accesses my site and log that IP with their activity in a log file. How would I go about this?

Thanks!
 
Let me clarify that by saying I want to log the IP using either JSPs or servlets, and write what information i want to a log file.

I can use request.getRemoteAddr() to get the IP, now how do I write it to a log file

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top