$_SERVER{'REMOTE_ADDR'] shows 10.0.0.90 (private ip) for all users instead of client public ip

Hi, I was using REMOTE_ADDR to get the client_ip from which I can get the country_code and it was working fine but in the last two weeks, it has started returning 10.0.0.90 everytime which is causing an issue

This will be either

  • local requests (including from a local reverse proxy)
  • an IP address rewrite which was not properly configured
  • a properly configured IP address rewrite, which however allows everyone to add the IP address header, thus allowing everyone to “specify” an address

In either case it’s not really a Cloudflare related issue, I am afraid. You may want to check your local configuration and especially mod_remoteip - Apache HTTP Server Version 2.4.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.