Possible Duplicate:
Function to get user ip address
<?PHP
$ipaddress = $_SERVER["REMOTE_ADDR"];
echo "Your IP is $ipaddress!";
?>
I was told this way of getting ip address has issues such as being able to fool. Is there a better way to gather ip address? looking for tutorials of better way to get ip address?