[thelist] PHP: Find Wide-Area Network IP Address

David Bindel dbindel at austin.rr.com
Wed Jun 12 12:09:00 CDT 2002


I'm sorry... I phrased my question wrong.  When the page is
requested, I need to know the real IP address of the remote
computer.

TIA,
David Bindel

> > Rich Gray:
> > Have you tried gethostbyaddr($_SERVER['SERVER_NAME'])?

> David Bindel:
> 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.




More information about the thelist mailing list