Possible Duplicate:
What is the most accurate way to retrieve a user's correct IP address in PHP?
Is $_SERVER['REMOTE_ADDR'] always isset()?
Well, I’d like to know if $_SERVER['REMOTE_ADDR'] always contains the IP of the transmitter of the http request? Never mind if it’s a proxy, a vpn or the real client IP, does this var always contain a valid IP address, or is it alterable in any manner by the client?
It will always contain the IP address of where the request came from according to the server receiving the request.
Meaning: if the request came from a computer behind a firewall/NAT/proxy, the content will be that of the firewall/NAT/proxy.