Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

69 users online



Real Ip!

Real Ip!

Currently viewing this thread: 1 (0 members and 1 guests)


stickthemepark

stickthemepark

Status: Offline!

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?

epyon

epyon

16, staying Asian.
Status: Offline!

nope.
you're going through a proxy or something.

___________________

http://whatpulse.bounceme.net/sig/epyon.png

gromy

gromy

Status: Offline!

This may help you, I haven't tried it myself...

PHP:

<?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

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0168 seconds.