Path : /hermes/bosweb01/b2651/j-ewer.com/ |
Current < : /hermes/bosweb01/b2651/j-ewer.com/ip.php |
<html> <head> <title>What is my IP address?</title> </head> <body> <?php if (getenv(HTTP_X_FORWARDED_FOR)) { $pipaddress = getenv(HTTP_X_FORWARDED_FOR); $ipaddress = getenv(REMOTE_ADDR); echo $pipaddress ; } else { $ipaddress = getenv(REMOTE_ADDR); echo "Your IP address is : $ipaddress"; } ?> </body> </html>