The following fails to grab the user's real ip. I testing on my Xamp (localhost). The code is supposed to grab real ip even if user hiding behind proxy. Why not showing my dynamic ip ? I can see my ip on whatismyip.com but that code fails to show it.
I been testing on localhost using Mini Proxy.
//IP from Shared Internet
$ip = $_SERVER['HTTP_CLIENT_IP'];
//IP from Proxy
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
$ip = $_SERVER['REMOTE_ADDR'];
echo 'User real Ip - '.getUserIpAddr();
I get this as output: ::1 What does that output mean ?