Jump to content

Browser IP


hjvanes

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.