I already use xampp 3.2.1 version and $_SERVER['SERVER_ADDR']
was fine. It returned some thing like this 172.0.0.1
. But now I have updated my Xampp to 5.6.3 version and now $_SERVER['SERVER_ADDR']
doesn't work as well, it returns ::1
.
What's the problem? And how can get the client IP now?