RSS Feed. [What is this?]
To find the real IP of an inbound connection, even if it is using a Proxy service, then use the following code snippet in your PHP file.
Make sure to CHOWN the file to apache if you experience any problems with output.
$ip = isset($_SERVER[’HTTP_X_FORWARDED_FOR’]) ? $_SERVER[’HTTP_X_FORWARDED_FOR’] : $_SERVER[’REMOTE_ADDR’];
echo ‘Your IP is: ‘.$ip;
If you like what you see and would like us to give you a free no obligation quote for your task, then please do not hesitate to contact us, we're more than happy to help.