I have been using the following PHP code to record IPs:
getenv('HTTP_CLIENT_IP') ?: getenv('HTTP_X_FORWARDED_FOR') ?: getenv('REMOTE_ADDR')
It had been working fine. But starting this May, I noticed that all recorded IPs are 74.220.219.56. I also tested it by using VPN and changing country, and the problem persists. Now I have to use only getenv('REMOTE_ADDR')
in order to get the correct IP.
Could that be caused by my hosting company's settings?