IP geolocation accuracy, tested on the clouds’ own answer keys: OCODATA looked up every range that AWS, Azure, Google Cloud, Oracle, DigitalOcean and Linode publish with a location, in 5 free databases that need no account. That is 28,045 IPv4 and 10,649 IPv6 ranges in 48 countries, 24,855 of them outside the US.
The spread is wide. One free file missed 163 ranges. The country the registries hold missed two in three.
| database | right country | wrong country | no country | wrong |
|---|---|---|---|---|
| IPLocate free (ip-to-country) | 38,531 | 163 | 0 | 0.4% |
| DB-IP Lite (country) | 35,337 | 3,357 | 0 | 8.7% |
| ip-location-db (user-country) | 24,714 | 13,980 | 0 | 36.1% |
| iptoasn (country of the network) | 11,332 | 25,611 | 1,751 | 66.2% |
| RIR delegated files (registered country) | 13,034 | 25,660 | 0 | 66.3% |
Download the CSV or JSON: every database by every cloud, free under CC BY 4.0. Columns: db, provider, ranges, agree, disagree, no_country, pct (wrong ÷ ranges). ip-location-db’s server-country file gave the same answer as user-country on every range, so it has its own rows in the CSV and none above.
The ask: is this visitor really in that country
“A visitor says Germany. The database says Turkey. Which one do I trust?”
Fraud teams, ad networks and geo-targeted sites ask it every day. IP geolocation accuracy is how often a database’s country for an address matches where that address really is. For most addresses there is no public answer key. Cloud ranges are the exception: the cloud says where each one runs.
What we ran: 38,694 ranges with a published location
The truth is each provider’s own file. Region names were turned into countries only when the provider’s own region list names them.
| provider | its file | what says where | ranges |
|---|---|---|---|
| Microsoft Azure | Service Tags, Public Cloud, 23 Nov 2026 | region of each AzureCloud tag (region list) |
19,110 |
| AWS | ip-ranges.json, 26 Nov 2026 | region (list), or the Local Zone (list) | 10,642 |
| Linode (Akamai) | geofeed | country column | 5,511 |
| DigitalOcean | geofeed | country column | 1,240 |
| Oracle Cloud | public_ip_ranges.json | region, named after its city | 1,118 |
| Google Cloud | cloud.json, 25 Nov 2026 | scope (regions and zones) | 1,073 |
AWS’s and Google’s global ranges were left out, and so were 2,981 ranges in regions the provider’s list does not name yet.
Each database answered with the country that covers most of a range’s addresses. Every file was downloaded the same morning:
| database | where | licence | file |
|---|---|---|---|
| IPLocate free | iplocate/ip-address-databases on GitHub | CC BY-SA 4.0 | updated daily |
| DB-IP Lite | db-ip.com | CC BY 4.0, link back to DB-IP | November 2026, 732,796 rows |
| ip-location-db | sapics/ip-location-db on GitHub | public domain (PDDL) | 26 Nov 2026 |
| iptoasn | iptoasn.com | free download | dated 1 Nov 2026 |
| RIR delegated files | ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC | free download | 25 and 26 Nov 2026 |
MaxMind GeoLite is not in the test: MaxMind asks for an account and a licence key before any download.
Wrong country by cloud provider
Share of each provider’s ranges put in the wrong country.
| provider | ranges | IPLocate | DB-IP Lite | ip-location-db | iptoasn | registry |
|---|---|---|---|---|---|---|
| Microsoft Azure | 19,110 | 0.7% | 11.1% | 71.9% | 65.6% | 71.9% |
| AWS | 10,642 | 0.1% | 10.4% | 1.6% | 54.9% | 62.6% |
| Linode (Akamai) | 5,511 | 0.1% | 0% | 0% | 92.3% | 57.5% |
| DigitalOcean | 1,240 | 0.9% | 6.6% | 0% | 46.9% | 46.1% |
| Oracle Cloud | 1,118 | 0.5% | 1.6% | 6.9% | 75.2% | 74.3% |
| Google Cloud | 1,073 | 0.3% | 2.6% | 0% | 66.4% | 64.2% |
Azure is where the free files split. 14,046 of its 19,110 ranges (73.5%) got a wrong country from at least one geolocation file. On Azure, ip-location-db missed exactly as often as the registry files: 71.9%.
ip-location-db, which says it reads geofeeds (files that say where each range is), got every DigitalOcean, Linode and Google Cloud range right.
Where the misses go
Outside the US, the gap grows. On 24,855 non-US ranges:
| database | wrong outside the US |
|---|---|
| IPLocate free | 0.5% |
| DB-IP Lite | 10.5% |
| ip-location-db | 50.5% |
| iptoasn | 93.6% |
| registry | 97.5% |
The most common swaps, truth first:
| database | top wrong answers |
|---|---|
| DB-IP Lite | US read as Canada (180), US as Japan (129), Netherlands as US (106) |
| ip-location-db | US read as UK (1,389), Australia as US (936), Netherlands as US (710) |
| registry | Australia read as US (1,726), Japan as US (1,574), UK as US (1,571) |
Four real ranges. Each shows the cloud’s own location first:
| range | cloud says | IPLocate | DB-IP Lite | ip-location-db | registry |
|---|---|---|---|---|---|
136.18.142.0/23 |
AWS eu-central-1, Germany | TR | TR | TR | US |
57.163.98.0/23 |
Azure westus3, US | GB | GB | GB | GB |
9.129.254.128/27 |
Azure denmarkeast, Denmark | GB | GB | GB | GB |
209.199.47.128/25 |
Azure saudiarabiaeast, Saudi Arabia | GB | MY | GB | GB |
All 3 geolocation databases were wrong together on only 37 ranges (0.1%). So two files that agree are a far better bet than one. Card data splits the same way: two free BIN lists name different issuing countries for 22.0% of 234,035 shared BINs (BIN list).
Why an IP shows the wrong country
- The registered country is not the location. A cloud registers a block once, then runs it anywhere. That is why the registry and iptoasn columns read “US” for ranges in Australia, Japan and the UK.
- Files age. DB-IP Lite comes out monthly, and the iptoasn file we got was dated 1 Nov. AWS’s own file was stamped 26 Nov, 05:17 UTC, the morning we ran.
The same gap hits anyone who checks a site from another country through a cloud server: the site may see a different country than the one you picked. How to pick an exit that reads right: view a website from another country. Sites that show each country a different page: geo-cloaking.
What this delivers: one country you can trust per range
- Fraud and ad teams: a label per address from the owner’s own file. Cloud, VPN, Tor or crawler, with the owner named: datacenter IP list, one address at a time in the VPN IP checker.
- Geo-targeted sites: paste a log into the bot traffic checker and see which visitors sit in cloud ranges before you trust their country.
- Data teams: we merge the clouds’ own region files and geofeeds with free databases, flag every range where they disagree, and deliver it as a dated custom feed. Country and network for every address: IPinfo alternative.
Get the disagreement list for your own ranges.
Country only, cloud ranges only: home and mobile lines publish no truth file, so they are not in this test.