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. Quote Link to comment 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']; Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.