Page 1 of 1

function Cable Address

Posted: Sun Oct 17, 2004 2:43 am
by Bomas
Can somebody help me, I'm looking for the code the see the cable address of a specific user.

Posted: Sun Oct 17, 2004 3:38 am
by nigma
If I understand the question:

Code: Select all

echo "Your IP Address is: " . $_SERVER['REMOTE_ADDR'];
For more information take a look at this php.net page.

Posted: Sun Oct 17, 2004 8:18 pm
by feyd
maybe you're wanting to know the "physical" location of the IP? [google]geoip[/google]

Posted: Fri Nov 05, 2004 3:20 pm
by Bomas
No the function i'm looking for is to see the ip address from an ADSL user. It changes everytime they register on the web. But they also have a fixed ip address, and thats what i need. I wonna use it to ban some users from a game I'm making with a friend

Posted: Fri Nov 05, 2004 3:27 pm
by rehfeld

Code: Select all

// try these, maybe one will contain what you want

$_SERVER['HTTP_X_FORWARDED_FOR'];
$_SERVER['HTTP_X_FORWARDED'];
$_SERVER['HTTP_FORWARDED_FOR'];
$_SERVER['HTTP_FORWARDED'];
$_SERVER['HTTP_X_COMING_FROM'];
$_SERVER['HTTP_COMING_FROM'];
$_SERVER['HTTP_CLIENT_IP'];
$_SERVER['HTTP_VIA'];
$_SERVER['REMOTE_ADDR'];

Posted: Sat Nov 13, 2004 4:03 am
by Bomas
Guys, you don't have to search anymore. I found what I was looking for, it was this function: gethostbyaddr($_SERVER['REMOTE_ADDR']);
Thanks anyway.