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