Does anyone know of a simple way to retrieve the country for a given IP Address? Preferably in ISO_3166-1 format?
相关问题
- Google places autocomplete suggestion without coun
- Golang mongodb aggregation
- How to change the IP address of a docker after cre
- Google recaptcha remoteip explanation
- Formula to find matching row value based on cells
相关文章
- PostgreSQL field data type for IPv4 addresses
- How to check if an element exists in a Python arra
- Pandas lookup, mapping one column in a dataframe t
- Why is Lookup immutable in C#?
- iOS iTunes store country
- How to find that an IP address is a LAN IP or WAN
- Direct IP call android
- Automate ftp upload to ip
I don't know how accurate that hostip.info site is. I just visted that site, and it reported that my country is Canada. I'm in the US and the ISP that my office uses only operates from the US. It does allow you to correct it's guess, but if you are using this service to track web site vistors by country, you'll have no way of knowing if the data is correct. Of course, I'm just one data point. I downloaded the GeoLite Country database, which is just a .csv file, and my IP address was correctly identified as US.
Another benefit of the MaxMind product line (paid or free) is that you have the data, you don't incur the performance hit of making a web service call to another system.
You can use the solution provided for this question.
But it returns a 2 digit country code.