----- Original Message -----
From: "King Maurice" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
> Does someone out there have a java code for detecting ip addresses of user
> who come to a certain page on their website
There is a method to do that.
It is javax.servlet.ServletRequest.getRemoteAddr()
A word of caution :
This is not reliable for any tracking purpose as more than one user at the
same time may have the same IP address (users behind a firewall..), the IP
address of the user may change as he browses ( I think AOL used to do
that..).
So this piece of information is really not usefull.
Regds,
Gokul
PS: If you want to have a look at detailed discussion of why the IP address
of the user is not reliable, you can check the archives of Servlet Interest
list at http://archives.java.sun.com/archives/servlet-interest.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets