• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get Client ip address ?

 
ozkan gumus
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Examine the JavaDocs for the javax.servlet.ServletRequest interface....
You will find the getRemoteAddr method.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic