I\'m trying to track IP addresses of visitors. When using $_SERVER[\"REMOTE_ADDR\"]
, I get the server\'s IP address rather than the visitor\'s. I tried this on
$_SERVER['REMOTE_ADDR']
gives the IP address from which the request was sent to the web server. This is typically the visitor's address, but in your case, it sounds like there is some kind of proxy sitting right before the web server that intercepts the requests, hence to the web server it appears as though the requests are originating from there.