Using this code:
On server A I have this:
$handle = fopen('http://www.server_b.com/get_ip.php', 'r'); //This is just a PHP file that echoes the REMOTE_ADDR
echo "IP looks like ".fread($handle, '100000')." to external server.\n";
fclose($handle);
echo "IP looks like ".$_SERVER['SERVER_ADDR']." to this server.";
on server B I have this:
echo $_SERVER['REMOTE_ADDR'];
I'm getting the following output from server A:
IP looks like xxx.xxx.223.90 to external server. //xxx.xxx on both lines are the same
IP looks like xxx.xxx.223.94 to this server.
Why am I getting two different IPs? Note, we do own the IP range from .90-.94