Remote_Addr is an ENV returned by the server and available to server-side scripts/applications, not the client browser. In PHP, you can use something like $_SERVER['REMOTE_ADDR'] to obtain the IP address of the client.
php - $_SERVER["REMOTE_ADDR"] gives server IP rather than Apr 10, 2020 php - Why is $_SERVER['REMOTE_ADDR'] showing a wrong ip I'm using $_SERVER['REMOTE_ADDR']; to get the IP of the visitors. I don't care if they are behind a proxy, VPN, etc; I need a measure of IP that can't be manipulated by the end-user. For some user Why does ServerVariable["REMOTE_ADDR"] returns the server IP? Although retrieving just the REMOTE_ADDR server variable should be enough, I found resources online that suggested that code like this should also check the HTTP_X_FORWARDED_FOR variable; if the request comes through a proxy server that translates the address, it's this variable that contains the correct address. php - Why does $_SERVER['REMOTE_ADDR'] have - Server Fault
CGI server variables - Adobe Inc.
Once enabled, your access logs will now show the correct IP addresses, and even PHP's $_SERVER['REMOTE_ADDR']variable will contain the client real IP address, instead of a Cloudflare IP address, which in itself will resolve most problems you could hit when enabling Cloudflare on PHP-enabled web sites (like WordPress or vBulletin installs).
Once enabled, your access logs will now show the correct IP addresses, and even PHP's $_SERVER['REMOTE_ADDR']variable will contain the client real IP address, instead of a Cloudflare IP address, which in itself will resolve most problems you could hit when enabling Cloudflare on PHP-enabled web sites (like WordPress or vBulletin installs).
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Sign up to join this community Scott Forsyth's Blog - Troubleshoot ASP.NET Errors To approve REMOTE_ADDR, from IIS Manager, they will need to select the website and open up URL Rewrite. Go to View Server Variables from the Actions pane. Add a Server Variable called REMOTE_ADDR. 3) Create URL Rewrite rule