This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes getting the actual client IP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getting the actual client IP" Watch "getting the actual client IP" New topic
Author

getting the actual client IP

bappa
Greenhorn

Joined: Mar 11, 2008
Posts: 15
Can anybody give some example code of how to get the client's actual IP not proxy IP by java servlet. Thanks in advance.


S K B<br />SCJP 1.5 (83%)
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You can only get their external 'announced' IP address. If this is replaced by a proxy IP then that's all you get. Sorry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting the actual client IP
 
Similar Threads
A 404 Error, need help configuring web.xml
Calling Tomcat directly using Ajax: request for opinions and suggestions
error while connecting to webservices
get location of client?
Questions about some elementary concept