Re: Getting Ip address of the actual client



Hariprasad wrote on Thu, 13 Jul 2006 03:08:25 -0700:

How can I get IP address of the requested client?

When I am using request.servervariables('remote_addr'), I am getting
public IP, but not the actual client IP.
My application is hosted on public IP 202.63.107.242, and through IP
forwarding it was being redirected to 192.168.100.147. How to get the
requested client's private IP address, if the requestor is within the
organisation (there is a firewall)

Look for the following:

HTTP_X_FORWARDED_FOR

HTTP_CLIENT

These will be either a single IP, or a list of IPs separated by commas, if
they are available (many proxies don't include these headers).

Dan


.