[thelist] PHP: Find Wide-Area Network IP Address
Rich Gray
richardgray at onetel.co.uk
Wed Jun 12 02:19:01 CDT 2002
Have you tried gethostbyaddr($_SERVER['SERVER_NAME'])?
HTH
Rich
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of David Bindel
Sent: 12 June 2002 05:42
To: thelist at lists.evolt.org
Subject: [thelist] PHP: Find Wide-Area Network IP Address
Is there a PHP function to find your Wide Area Network (WAN)
IP address?
I have tried this on my own computer:
echo $_SERVER['REMOTE_ADDR'];
but it returns 127.0.0.1.... localhost, not my REAL IP
address.
I have seen this feature on several websites, and I need to
find some way to do it on a project that I am working on
right now.
TIA,
David Bindel
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list