Re: LAN IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philippe Reynolds wrote:
Hi all,

I would like to find a way to get my computers LAN IP address through PHP. I tried using the gethostbyname("HOSTNAME") function, however I only got back the 127.0.0.1 address.

Any help is always appreciated
Cheers
Phil

Server or client IP?

Server : $_SERVER['SERVER_ADDR']
Client : $_SERVER['REMOTE_ADDR']

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux