Forum Moderators: coopster

Message Too Old, No Replies

Remote User IP

how to get remote user IP

         

vipink

8:43 am on Jun 1, 2006 (gmt 0)

10+ Year Member



Is it possible to fetch remote USER IP (instead of ISP/router's IP) or computer name using PHP?

Habtom

8:45 am on Jun 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



May be $_SERVER['REMOTE_ADDR']

Which IP does this hold anyway?

vipink

9:45 am on Jun 1, 2006 (gmt 0)

10+ Year Member



$_SERVER['REMOTE_ADDR'] gives the IP of the router/ISP and not the actual user. There can be serveral users behind one router/ISP. I want to track if the same user is filling the registration form or the different users. I need either the computer name or the remote user ip

eelixduppy

10:41 am on Jun 1, 2006 (gmt 0)



You can use cookies [us2.php.net].

whoisgregg

5:57 pm on Jun 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible to fetch remote USER IP (instead of ISP/router's IP) or computer name using PHP?

No. You can't see the computer's LAN IP or computer name. Cookies/sessions are the way to go for user identification.