File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Tracking Remote Public IP address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tracking Remote Public IP address" Watch "Tracking Remote Public IP address" New topic

Tracking Remote Public IP address

sarathchandra chandala

Joined: Sep 06, 2007
Posts: 9
The requirement to track the remote client IP address in public domain, in order to authenticate the client locally, is not being met as when the Client Public IP is hitting the local firewall. As it passes through a load balancer(to which 2 servers are connected, In a LAN), The public IP address of the client request is being replaced by the private IP of the load balancer.

How can the original public IP address of the client be traced to use it for authentication purposes.
I am using getRemoteClient() function to obtain the remote client IP.
Is there any other way to get the original public address of the Client.

Thanks in advance
I agree. Here's the link:
subject: Tracking Remote Public IP address
It's not a secret anymore!