Hello
I have a really problem to get my real IP on iOS. When I’m on Safari iOS, my script return this ip :
248.17.., but my real ip is : 91.17*..
On Windows 10 i don’t have problem.
If I go to on iOS http://monip.org/ he display my real Ip.
I didn’t understand…
My PHP function :
<?php
function getRemoteAddr()
{
if(getenv('HTTP_CLIENT_IP')) return getenv('HTTP_CLIENT_IP');
elseif(getenv('HTTP_X_FORWARDED_FOR')) return getenv('HTTP_X_FORWARDED_FOR');
elseif(getenv('HTTP_X_FORWARDED')) return getenv('HTTP_X_FORWARDED');
elseif(getenv('HTTP_FORWARDED_FOR')) return getenv('HTTP_FORWARDED_FOR');
elseif(getenv('HTTP_FORWARDED')) return getenv('HTTP_FORWARDED');
elseif(getenv('REMOTE_ADDR')) return getenv('REMOTE_ADDR');
else return null;
}