Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeYour IP location is wrong because an IP address carries no location: sites look it up in a database that maps address blocks to where the network is registered or routed. Mobile carrier gateways, VPNs, carrier-grade NAT, ISP head-office records and stale data all place you elsewhere. Country is usually right; city often is not, so treat city reports as rough regions.
What you will learn
- IP location is a database estimate about your provider's address block, not a reading of your device
- Most causes have a quick check (switch off VPN, switch from mobile data); only your ISP can fix the block itself
- In analytics, trust country for decisions, region for trends, and city only as rough clusters
Why is my IP address location wrong?
Your IP address does not carry a location. Websites look the address up in a geolocation database that maps blocks of addresses to the place where the block's owner registered or routes them, and that place is often a carrier gateway, a VPN server, your provider's head office or an out-of-date record rather than where you are sitting. GPS and Wi-Fi positioning on your device are separate and far more precise.
So a "wrong" IP location is usually the database being right about the network and wrong about the person. The common causes are mobile carrier gateways, VPNs and privacy relays, carrier-grade NAT, ISP registration addresses and blocks that moved without the database noticing. Each has a quick check, and most cannot be fixed from your side.
The same mechanism matters if you read country and city reports in website analytics. Country is reliable enough to act on; city is a rough regional signal. The rest of this article explains how the lookup works, gives a check for each cause and shows with numbers how far to trust each level. Using country data once you trust it is covered in website audience geography.
How does IP geolocation work?
There is no central registry of where each IP address physically is. Location comes from commercial and free databases built from several inputs:
- Registry records. Regional internet registries record which organisation holds each address block and the organisation's registered address. That gives a country and sometimes a city, but it is the holder's office, not the user.
- Network operators' own feeds. RFC 8805, published in August 2020, documents a CSV format in which network operators self-publish the location of their prefixes: IP prefix, country code, region code and city (a postal-code field exists but is deprecated as too granular). Consumers are told to treat these as hints and check them.
- Network measurements. Latency from known points and routing data narrow down where a block is served from.
- User-contributed corrections and data from services where people share a precise location.
The database then answers "where is this block used?" with the most specific place it is confident about. When it cannot place a block precisely, one major provider's documentation says city and postal code are left out and integrations should fall back to less specific data, and city-level answers come with an accuracy radius, such as 100 km, rather than a point.
Because each database blends different inputs, two lookup sites often disagree about the same address. Neither is reading your device.
What causes a wrong IP location, and how do you check each one?
| Cause | What happens | How to check | Can you fix it? |
|---|---|---|---|
| Mobile data | Phones share carrier gateways that serve a wide area; the address maps to the gateway's region | Switch to home Wi-Fi and look again; the result usually changes | No, it is how the carrier routes traffic |
| VPN, proxy or privacy relay | The site sees the exit server's address | Disconnect and look again | Choose a closer exit server |
| Carrier-grade NAT | Many customers share a pool of public addresses registered to one place | Router's WAN address in 100.64.0.0/10 (the shared space reserved by RFC 6598) while lookup sites show a different public address | Only your provider can change it |
| ISP registration address | The block is placed at the provider's office or a regional hub | Lookup shows the provider's head-office city | Ask the provider to publish an RFC 8805 geofeed |
| Block moved or reassigned | Addresses moved to another region or country and the database is stale | Several lookup services disagree; the ISP name is right, the city is not | Submit corrections to databases; ask the ISP to update its feed |
| Corporate network or cloud egress | Work traffic leaves through head office or a cloud region | Look again off the work network | No, by design |
| IPv6 vs IPv4 | The same connection has two addresses that map differently | Lookup sites show which address they saw | Not directly |
Mobile is the case one provider singles out: phones using the same address can be spread across a wide area, so the location is necessarily broad. For VPNs and anonymizing proxies, the lookup may return the server's location, and the provider's own note is that "more specific geolocation is not possible."
| Cause | How to check | Fixable by you? |
|---|---|---|
| Mobile data | Switch to Wi-Fi and look again | No |
| VPN, proxy or privacy relay | Disconnect and look again | Pick a closer exit |
| Carrier-grade NAT | Router WAN address in 100.64.0.0/10 | Only the provider |
| ISP registration address | Lookup shows the provider's head office | Ask ISP for an RFC 8805 geofeed |
| Block moved or reassigned | Lookup services disagree | Submit corrections |
| Corporate or cloud egress | Look again off the work network | No |
Two lookup sites disagreeing is normal; each blends different data.
How accurate is IP geolocation?
Accuracy falls sharply with each level of detail. One major database provider publishes these estimates for its own data:
- Country: 99.8% accurate.
- US state or region: about 80%.
- US city: about 66% within a 50 km radius of the true city.
The provider adds that accuracy varies by country, by distance, by connection type (cellular vs broadband, IPv4 vs IPv6) and by how each ISP manages its addresses.
Applied to a report, sample data: 10,000 visitors from the United States in a month.
| Level | Published accuracy | Placed correctly | Possibly wrong |
|---|---|---|---|
| Country | 99.8% | 10,000 × 0.998 = 9,980 | 20 |
| State | about 80% | 10,000 × 0.80 = 8,000 | 2,000 |
| City, within 50 km | about 66% | 10,000 × 0.66 = 6,600 | 3,400 |
About a third of the city assignments may be more than 50 km off, and the error is not random: mobile-heavy and VPN-heavy audiences are misplaced more, and misplaced visitors pile up in the cities where gateways, exit servers and provider hubs sit. A city that suddenly shows hundreds of visitors from a data-centre town is usually a network, not a market. Whether one address even maps to one person is a separate question, covered in are IP addresses unique to each device.
10,000 US visitors placed correctly
sample, by levelHow do you fix a wrong location for your own connection?
- Rule out the easy causes. Disconnect any VPN, proxy or privacy relay, switch from mobile data to Wi-Fi, and check again on two or three lookup sites.
- Note what is wrong. If the provider name is correct but the city is wrong, the database has the block in the wrong place. If even the provider looks odd, you are probably on a VPN or corporate network.
- Ask your ISP. Providers can publish or update an RFC 8805 geofeed for their prefixes, which databases use as a source. This is the fix that scales, because it corrects the block for everyone on it.
- Submit corrections to the database providers whose results a site you care about uses. Corrections help with blocks that genuinely moved; they do not help with VPNs or carrier gateways, and a dynamic address that changes may pick up the old error again.
- Use device location when it matters. A site that asks permission to use your location gets it from GPS or Wi-Fi positioning, not from your IP, and is far more precise. Map and delivery services usually offer that.
A wrong IP location does not mean someone knows your address. Websites cannot see subscriber details from an IP, and the error usually means the opposite: the database knows less about you than it pretends to.
What does it mean for country and city reports in analytics?
Use a rule of thumb per level:
- Country: trust it for decisions. Language, currency, pricing tests, legal region. Check the VPN share for audiences that use them heavily, since a visitor's exit country becomes their country.
- State or region: use it for trends. Compare a region with itself over time, not with another region at a precision the data does not have.
- City: use it as a rough cluster, never for individuals. Merge small cities into metro areas, ignore gaps smaller than the error (in the sample, a third of city assignments could be off by 50 km or more), and treat sudden spikes in data-centre towns as network artefacts.
Two practical checks before acting on a city: does the same city show up in your order or shipping data, and does its device mix look like real people (phones and laptops) rather than servers? If not, it is probably a gateway.
How does TapCub handle visitor location?
Suppose the 10,000 US visitors above are in TapCub and the city table shows a spike in one town. Here is how to read it:
- Open the place report. Web analytics › Audience starts with a world map and drills into country, region and city, with visitors, pageviews, bounce and duration per row. Place comes from an IP database, and city is not always present; missing values show as empty rather than a guessed town.
- Know what was looked up. By default TapCub truncates the address by 2 bytes before the city lookup (the last two IPv4 octets; IPv6 drops the matching tail), and the address is not written on the event. That protects visitors, and it also means city is an approximation of a wider block, coarser than the provider accuracy figures above. Country is unaffected in practice. See IP truncation and retention and IP anonymization.
- Choose the granularity you need. In Configuration › Privacy center, each region rule can set geography to city, country or none, and change how many address bytes are truncated. If you only ever act on country, setting geography to country removes the false precision.
- Check the spike. Click the city to filter, then look at device and source in the same report. A town full of desktop sessions from one source, with no orders, is usually a gateway or a data centre. Robots and AI crawlers are counted separately in Web analytics › Bots, so known crawlers are not in these rows.
TapCub does not correct databases or locate individual devices; it reports aggregate place from the IP lookup, at the precision you choose.
FAQ
Why does my IP address show a different city?
Because the database places your address block where its owner registered or routes it, not where you are. Mobile carrier gateways, VPNs, carrier-grade NAT and ISP regional hubs all put you in another city. One provider estimates US city accuracy at about 66% within 50 km, so a city 50 to 200 km away is common.
Why does my IP address show the wrong country?
Usually a VPN, proxy or privacy relay whose exit server is in another country, or a corporate network that routes traffic through another country. Less often, an address block was reassigned between countries and the database has not caught up. Disconnect the VPN and check two or three lookup sites to tell which.
Can I change my IP address location?
Not directly; the location is a database entry about your provider's address block. You can avoid misleading causes (turn off a VPN, switch from mobile data), ask your ISP to publish an accurate RFC 8805 geofeed, or submit corrections to database providers. Corrections fix moved blocks, not VPNs or carrier gateways.
How accurate is IP geolocation?
Very accurate for country and much weaker for city. One major provider estimates 99.8% at country level, about 80% at US state level and about 66% for US cities within 50 km, and notes that accuracy varies by country and connection type. Mobile and VPN traffic is placed least precisely.
Can a website find my exact address from my IP?
No. An IP lookup gives an estimated area for the address block, often tens of kilometres wide, and websites cannot see your provider's subscriber records. A site that shows your precise location got it from your device's GPS or Wi-Fi positioning, which needs your permission.
Sources
- RFC 8805: A Format for Self-Published IP Geolocation Feeds (August 2020): prefix, country, region, city fields; feeds as hints (checked 2026-11-28)
- RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space (April 2012): 100.64.0.0/10 for carrier-grade NAT (checked 2026-11-28)
- MaxMind support: Geolocation accuracy: 99.8% country, about 80% US state, about 66% US city within 50 km; mobile and VPN limits; accuracy radius (checked 2026-11-28)
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.



