Do you wnat to know what is your public IP Address? Here is a small script that you can use to check your IP Address using PHP. You can check my sidebar for your IP Address.

<?

if (getenv(HTTP_X_FORWARDED_FOR)) {
$pipaddress = getenv(HTTP_X_FORWARDED_FOR);
$ipaddress = getenv(REMOTE_ADDR);
echo “Your Proxy IP address is : “.$pipaddress. ” (via $ipaddress) ” ;
} else {
$ipaddress = getenv(REMOTE_ADDR);
echo “Your IP address is : $ipaddress”;
}
?>

Like this blog? Why not buy me a cup of coffee?