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 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...? Link to comment https://forums.phpfreaks.com/topic/247251-browser-ip/#findComment-1269947 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.