proxy server interfering with IP address
Posted: Mon Apr 10, 2006 8:18 pm
Hi i'm just trying to retrieve an IP address from the user so i have
But we use a proxy server setting and every time a user would visit it would display the proxy server's IP "192.168.1.240" address rather than the clients IP address "192.168.1.10" Is there a way around that? Or am I retrieving it wrong?
Code: Select all
<?
$IPaddress = getenv("REMOTE_ADDR");
$ComputerName = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $IPaddress;
echo $ComputerName;
?>