hjvanes Posted September 16, 2011 Share Posted September 16, 2011 Hello PHPers, I need help regards obtaining the correct Host and IP address. Using all browsers except mozilla-firefox, I will received the correct IP address. But with Mozzilla-firefox I get the wrong Host and IP address back as 10.1.23.22 ..The code I have is $mj_ip = $_SERVER['REMOTE_ADDR']; $mj_host = gethostbyaddr($_SERVER['REMOTE_ADDR']); Cheers, HJ Quote Link to comment https://forums.phpfreaks.com/topic/247251-browser-ip/ Share on other sites More sharing options...
WebStyles Posted September 16, 2011 Share Posted September 16, 2011 maybe you have firefox set to use a different connection, firewall or proxy ? or maybe you're running some browsers in your normal system and others in a virtual environment like VirtualBox or VMWare...? Quote Link to comment https://forums.phpfreaks.com/topic/247251-browser-ip/#findComment-1269947 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.