$_SERVER['REMOTE_ADDR'] differs between 2 servers

green_meklar

New Member
I've got 2 servers from where I get my client \[code\]$_SERVER['REMOTE_ADDR']\[/code\]On server (A), I store the ip in the DB and perform a \[code\]header('Location: ...')\[/code\] to Server (B).Server (B), prints/echo the ip on screen.Sidenote: the page on server (A) gets called from inside an iframe, the page of server (B) gets loaded into the same iframe afterwards.However when I compare both results, I can see that Server (A) returns the local network IP and Server (B) returns the remote local IP. What is the reason for this? I expected both to be the local/remote ip as behavior.
 
Back
Top