Posted by John Nichel on 08/29/05 18:19
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@kegworks.com
[Back to original message]
|