File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "getting the actual client IP" Watch "getting the actual client IP" New topic

getting the actual client IP


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

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:
subject: getting the actual client IP
It's not a secret anymore!