Forum Moderators: coopster

Message Too Old, No Replies

Finding Clients Local IP Address

         

wfernley

4:33 pm on Feb 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone,

I know it is possible to obtain the IP of the clients Internet connection with one of the $_SERVER predefined variables but I was curious if you can obtain their local PC IP address. (example 192.168.1.100).

Can this be done?

Thanks in advance for your help!

jatar_k

4:36 pm on Feb 28, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try dumping the $_SERVER array and see what's there

you can sometimes get things like HTTP_FORWARDED_FOR