beboo002 Posted December 14, 2007 Share Posted December 14, 2007 Hello all Q:- How can i get Client side IP address And Computer(system) name using PHP script. Link to comment https://forums.phpfreaks.com/topic/81654-solved-how-can-get-ip-address-and-client-computer-name/ Share on other sites More sharing options...
rajivgonsalves Posted December 14, 2007 Share Posted December 14, 2007 for the ip address you can use $_SERVER['REMOTE_ADDR']; Link to comment https://forums.phpfreaks.com/topic/81654-solved-how-can-get-ip-address-and-client-computer-name/#findComment-414779 Share on other sites More sharing options...
beboo002 Posted December 14, 2007 Author Share Posted December 14, 2007 thanks for quick reply I know this command but i need some thing more if we connect to Intranet then howcan i get local computer ip address Link to comment https://forums.phpfreaks.com/topic/81654-solved-how-can-get-ip-address-and-client-computer-name/#findComment-414785 Share on other sites More sharing options...
Daniel0 Posted December 14, 2007 Share Posted December 14, 2007 The same way. When I access my localhost like http://daniel-laptop then $_SERVER['REMOTE_ADDR'] will contain 192.168.0.103 which is my LAN IP. Link to comment https://forums.phpfreaks.com/topic/81654-solved-how-can-get-ip-address-and-client-computer-name/#findComment-414788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.