Nandini Posted March 28, 2009 Share Posted March 28, 2009 Hi friends. How can i get user's Public Ip address by using php Can any one send me scripts or links. Thanq Link to comment https://forums.phpfreaks.com/topic/151498-solved-get-visitors-global-ip/ Share on other sites More sharing options...
ratcateme Posted March 28, 2009 Share Posted March 28, 2009 $_SERVER['REMOTE_ADDR'] Scott. Link to comment https://forums.phpfreaks.com/topic/151498-solved-get-visitors-global-ip/#findComment-795690 Share on other sites More sharing options...
Nandini Posted March 28, 2009 Author Share Posted March 28, 2009 I think this is for system ip. I am asking about Global ip. See http://www.myglobalip.com. I want to display like this Link to comment https://forums.phpfreaks.com/topic/151498-solved-get-visitors-global-ip/#findComment-795693 Share on other sites More sharing options...
ratcateme Posted March 28, 2009 Share Posted March 28, 2009 no it will give you what you call a global IP it is the IP of the remote host it is talking to your pc may have a address like 192.168.1.2 but to get to the internet it has to talk to your router that relabels it with a its own IP that will be something like 118.213.146.69 Scott. Link to comment https://forums.phpfreaks.com/topic/151498-solved-get-visitors-global-ip/#findComment-795694 Share on other sites More sharing options...
Nandini Posted March 28, 2009 Author Share Posted March 28, 2009 Oh thanq scott. Link to comment https://forums.phpfreaks.com/topic/151498-solved-get-visitors-global-ip/#findComment-795700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.