File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how to get Client ip address ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "how to get Client ip address ? " Watch "how to get Client ip address ? " New topic
Author

how to get Client ip address ?

ozkan gumus
Greenhorn

Joined: Sep 03, 2007
Posts: 7
Hi all ,

i have a server application running on Tomcat App. Server . i want to get the ip address of the client who send its requests by its browser ?
any suggestions ?
PS. Http headers does not contain Client ip .

thanks ,
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12268
    
    1
Examine the JavaDocs for the javax.servlet.ServletRequest interface....
You will find the getRemoteAddr method.

Bill


Java Resources at www.wbrogden.com
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You can find the API here:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to get Client ip address ?
 
Similar Threads
How to get IP Address of Client Machine?
get the IP Address
Read Client IP Address behind Proxy
Port Number while starting the server
How to obtain the destination machine information