Page 1 of 1
$REMOTE_ADDR only returns address of DHCP
Posted: Sun Feb 13, 2005 7:20 am
by Chris Corbyn
Hi,
Does anybody know how to get the IP of the client.... not the DHCP IP but the address assigned by DHCP.
$REMOTE_ADDR returns my DHCP server not my actual IP...
Thanks
Posted: Sun Feb 13, 2005 9:06 am
by feyd
your DHCP is a proxy, most likely.. look through the server vars you get.. you may potentially see forwarded_for or similar things.. look into the proxy detection scripts that have been around.
Posted: Sun Feb 13, 2005 12:43 pm
by jonemo
if it is a proxy:
should return an internal (class-a/b/c whatsoever) ip - what do you want to do with that?
Posted: Sun Feb 13, 2005 1:15 pm
by Chris Corbyn
Thanks... it's for keeping track of my own PC's IP so that when it's online a link is displayed to the ftp that is running on it. i have a dynamic IP so I needed some way to pick up the IP.