When I check ip from ipconfig on local host. I am getting ip like this 100.78.80.xxx (US)
, when I check IP on some website like ip2location/ip2nation
, I am getting IP like this 115.245.20.xxx (IN)
.
I want to know why?
I want to get the user IP address to get the country name. I am using $_SERVER['REMOTE_ADDR']
to get the user IP address and will get the country name.
Does it get the correct IP of user machine to get the correct country code?