
February 15th, 2004
04:20 PM
Real Ip!
Ok so ive got a problem and I need to figure out the users ips but!
when I use
$ip = $_SERVER['REMOTE_ADDR'];
its gives me 24.69.255.205
but I need it to show my real ip so that it gives me this ip 24.85.179.32 not the other one
Is there any way for me to do this?

February 15th, 2004
05:28 PM
16, staying Asian.
Status: Offline!
nope.
you're going through a proxy or something.
___________________


February 16th, 2004
03:04 AM
This may help you, I haven't tried it myself...
<?php
function get_ip() {
$test = getenv(HTTP_X_FORWARDED_FOR);
if (!$test) {
return getenv(REMOTE_ADDR);
} else {
return $test;
}
}
?>
Source: http://www.webhostingtalk.com/showthread.php?s=&threadid=233864