Dragosvr92 Posted August 21, 2010 Share Posted August 21, 2010 Hi i am using this to get the hostname of an IP Address $host = gethostbyaddr($_GET['ip']); While i am Tracking my own IP to get the host on localhost where i run the page at it is giving me the name of my Windows Os Computer name instead of the actual hostname the IP is 82.137.41.179 on my webhosting server it showd the host fine dos anyone know what is happening? Daniel0? Quote Link to comment https://forums.phpfreaks.com/topic/211355-php-hostname-issue/ Share on other sites More sharing options...
trq Posted August 21, 2010 Share Posted August 21, 2010 When within your LAN you will get the computer name as a hostname. Quote Link to comment https://forums.phpfreaks.com/topic/211355-php-hostname-issue/#findComment-1102023 Share on other sites More sharing options...
Dragosvr92 Posted August 21, 2010 Author Share Posted August 21, 2010 When within your LAN you will get the computer name as a hostname. thanks for nothing (you know why ) Quote Link to comment https://forums.phpfreaks.com/topic/211355-php-hostname-issue/#findComment-1102060 Share on other sites More sharing options...
trq Posted August 21, 2010 Share Posted August 21, 2010 When within your LAN you will get the computer name as a hostname. thanks for nothing (you know why ) Whatever you think. Quote Link to comment https://forums.phpfreaks.com/topic/211355-php-hostname-issue/#findComment-1102061 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.