Home » Questions » Computers [ Ask a new question ]

How to get the Country according to a certain IP? [duplicate]

How to get the Country according to a certain IP? [duplicate]

"This question already has answers here:





Getting the location from an IP address [closed]

(20 answers)


Closed 11 months ago.




Does anyone know any simple way to retrieve the country from a given IP Address, preferably in ISO_3166-1 format?"

Asked by: Guest | Views: 239
Total answers/comments: 4
Guest [Entry]

"A lot of people (including my company) seem to use MaxMind GeoIP.

They have a free version GeoLite which is not as accurate as the paid version, but if you're just after something simple, it may be good enough."
Guest [Entry]

"A lot of people (including my company) seem to use MaxMind GeoIP.

They have a free version GeoLite which is not as accurate as the paid version, but if you're just after something simple, it may be good enough."
Guest [Entry]

"Here's a nice free service with a public API:
http://www.hostip.info/use.html"
Guest [Entry]

ipinfodb provides a free database and API for IP to country and vice versa. They use free data from MaxMind. The data gets updated every month, and it's a great free alternative with decent accuracy.