I am editing a remote server, and for some reason it is returning 127.0.0.1, I tried it on my iPhone too and it did the same thing.
echo $_SERVER['REMOTE_ADDR']; // returns 127.0.0.1
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It mean that the client who executed the script is hosted at the location of localhost.
This could be because the script that contain $_SERVER[‘REMOTE_ADDR’] is called with a CURL request from another script on the same server.
It could also be because of a proxy system.
Possible indirect duplicate of Using Django, why would REMOTE_ADDR return 127.0.0.1 on a web server?