Skip to content
Troubleshooting

Proxy Showing the Wrong Country? How to Diagnose It

A site says you are in the wrong country even though the proxy is connected. Before you blame the proxy, find out which of four different "locations" is wrong. This guide walks through the checks in order and ends with a worksheet you can fill in and send to support.

9 min read·Last updated: November 2026

Quick Answer

Get the exit IP through the proxy, then look up that same IP in two geolocation databases and note the time. If both show the right country, the problem is in your client: a bypassed request, an IPv6 path, a cached session, or browser location signals. If the databases disagree, the site may be reading one that places the range elsewhere: request a correction, or use a different exit IP.

  • →Different IP at the site than at the echo service = traffic is going around the proxy
  • →Same IP, databases disagree = a data problem, not a connection problem
  • →Country right, city off = normal for mobile ranges, check the country only

This page starts where first checks end. If you have not yet confirmed that the proxy connects and returns an exit IP, run the steps in how to test a proxy first, or use our IP checker. Here we assume the proxy works and the location still looks wrong somewhere.

1. Separate the four things called "location"

"Wrong country" can mean any of these, and each has a different fix. Write down which one you are looking at before changing anything.

LayerWhat it isWhere you read it
Exit IPThe public address the target server sees on the connection.An IP-echo request sent through the proxy
ASN / networkThe network that announces the range, such as a mobile operator.ipinfo org field, ip-api as and isp fields
Database locationWhere a geolocation vendor thinks that range is used. An estimate, not a measurement.MaxMind, ipinfo, ip-api and others, each with its own data
Browser locationWhat the page can read besides the IP: Geolocation API, timezone, language.Browser settings, antidetect profile, automation options

A site that shows the wrong country is usually reading the database or the browser layer.

2. Compare the same exit IP in two databases

Get the exit IP once through the proxy, then look that exact address up directly in two vendors. The second lookup does not need the proxy, since you pass the IP as a parameter. Keep the proxy URL in an environment variable so credentials never appear in your shell history or in a screenshot.

# Example commands. PROXY_URL is set in your environment
# (for example from a password manager), never typed inline.
EXIT_IP=$(curl -s --proxy "$PROXY_URL" https://ipinfo.io/ip)
date -u

# Database A: ipinfo, over HTTPS
curl -s "https://ipinfo.io/$EXIT_IP/json"

# Database B: ip-api. The free endpoint is HTTP only and for
# non-commercial use, so send nothing but the public IP to it.
curl -s "http://ip-api.com/json/$EXIT_IP?fields=status,country,regionName,city,isp,as,mobile"

Record the UTC time with each result, because databases change. To show why two vendors are worth checking, we ran the direct lookups (no proxy) for three public DNS resolver addresses on 29 November 2026 at 18:32 UTC:

IP (public resolver)ipinfo.ioip-api.comResult
8.8.8.8US · California · Mountain ViewUS · Virginia · AshburnSame country, different state
9.9.9.9US · Virginia · AshburnUS · California · BerkeleySame country, different state
1.1.1.1AU · Queensland · BrisbaneAU · Queensland · South BrisbaneSame country and state, suburb differs

All three agreed on the country. For two of the three addresses, the vendors placed them on opposite US coasts. These are anycast addresses, served from many sites at once, and ipinfo marked each one with "anycast": true, so they are an extreme case and not a proxy exit. The lesson still carries over: vendors can share a country and disagree on everything below it.

If both databases show the country you expected, the IP is probably not the problem (the site could still use a third vendor); move to step 3. If they disagree on the country, find out which vendor the target site uses if you can, and jump to the correction routes in step 4.

3. Rule out bypass, IPv6 and cached sessions

When the exit IP geolocates correctly but the site still shows your home country, the site is usually not seeing the exit IP at all, or it is reading something else.

Application bypass

Many clients read proxy settings from the environment, and a bypass list can send some hosts direct. Python Requests reads http_proxy, https_proxy, no_proxy and all_proxy (and uppercase variants), and its docs warn that values set on session.proxies can be overwritten by environment proxies, so pass proxies= on each request if you need certainty. Playwright accepts a proxy for the whole browser or per context, with an optional list of hosts to bypass. Check that the target domain is not on any bypass list, and that the code path you are testing is the one that sets the proxy.

IPv4 and IPv6

Run curl -6 https://ipinfo.io/ip without the proxy. If it returns an address, your own network has IPv6. Any request that skips the proxy can then reach a dual-stack site over your IPv6 address, which geolocates to your real country. If the site reports an IPv6 address you do not recognise as the exit, look for traffic outside the proxy. The background on how mobile networks handle both versions is in IPv6 vs IPv4 for mobile proxies.

Cached sessions and saved settings

A site that saw you from another country can keep that in a cookie, a logged-in account setting, or a region picker. Repeat the check in a new browser profile with the proxy set and no cookies. If the country is now right, the old session was the cause, not the IP.

Browser location signals

The browser Geolocation API reports the device position from the best source the device has (MDN gives GPS as an example), and the user is asked for permission first. It is separate from the IP lookup. Timezone and language are separate signals too. In Playwright you can set geolocation with the geolocation permission, plus timezoneId and locale, per context. DNS and WebRTC can also expose a second address; those leaks have their own guides: DNS leaks with proxies and WebRTC leaks on mobile proxies.

4. Country versus city, and how corrections work

MaxMind publishes its own estimate: about 99.8% accuracy at country level, and for IPs in the United States about 80% at state level and 66% for cities within a 50 km radius. It also says that IP addresses used in mobile networks may be used by phones across a large distance, and that when it cannot be specific it leaves out city and postal data rather than guessing. Other vendors make their own trade-offs.

For a mobile exit, judge the country and the carrier. A city that is off, or missing, is expected. The carrier can also share one public address between many subscribers (carrier-grade NAT, covered in CGNAT and fingerprinting), so a database is describing a range, not your modem.

If a vendor has the country wrong, there are three routes:

  • •MaxMind: the data correction form takes location and ISP or organization corrections.
  • •ipinfo: the corrections page accepts reports of wrong geolocation.
  • •Network operators: RFC 8805 defines a self-published geolocation feed that maps prefixes to coarse locations. It is published by the network operator for its own prefixes.

Do not plan around a date. MaxMind requires database licensees to keep their copies up to date, but the site you care about may still refresh on its own schedule. If you need the right country today, a different exit IP is the practical route, not a correction.

5. Decision tree

  1. Step 1. Does the IP the site reports (or the one you see in its logs) match the exit IP from the proxy?

    Yes: Go to step 2.

    No: The app is not using the proxy for that traffic. Check bypass lists, environment variables and IPv6.

  2. Step 2. Do two databases agree on the country of the exit IP?

    Yes: Go to step 3.

    No: The range is placed differently by vendors. Find out which vendor the site uses and see correction routes below.

  3. Step 3. Does the country look right in a fresh browser profile with cookies cleared?

    Yes: The old profile held a cached session or saved account country. Reset it.

    No: Go to step 4.

  4. Step 4. Have you allowed the Geolocation API, or do timezone and language point at your home country?

    Yes: Block the permission or set location, timezone and locale to fit the exit.

    No: Collect the worksheet and open a support request.

6. Diagnostic worksheet

Print it or copy it into a ticket. Fill the result column as you go and write the UTC time next to each lookup. The commands assume PROXY_URL and EXIT_IP are set as in step 2.

CheckHowYour resultReading it
Exit IP through the proxy (IPv4)curl --proxy "$PROXY_URL" https://ipinfo.io/ip Expected: an address you do not own
Your own IP, no proxycurl https://ipinfo.io/ip Must differ from the row above
Your own IPv6, no proxycurl -6 https://ipinfo.io/ip Works? A bypass may expose it
ASN / org of the exit IPipinfo org field Should be the carrier you ordered
Database A country and city, with UTC timecurl https://ipinfo.io/$EXIT_IP/json Check the country
Database B country and city, with UTC timeip-api.com lookup of $EXIT_IP Compare with A
What the target site shows, and the IP it reports (if any)Site page or account settings Different IP means bypass
Same check in a fresh browser profileNew profile, proxy set, no cookies Fixed? Cached session
Timezone and language of the clientBrowser settings or automation config Should fit the exit country
Browser Geolocation permissionSite settings for the target Allowed: site can read device location

7. What to send support (without credentials)

Include the exit IP, the UTC time of each lookup, both database results, the client and version, the target site and what it showed, and whether a fresh profile changed anything. Leave out the password and any proxy URL that contains it. A filled example, with documentation addresses in place of real ones:

Example only (documentation IP ranges, not real results)

Port / slot ID:   <slot ID, as listed by GET /api/v1/proxies>
Exit IP:          203.0.113.24  (seen via ipinfo.io/ip)
Your own IP:      198.51.100.7  (no proxy)
Database A:       <vendor>, <country / city>, <UTC time>
Database B:       <vendor>, <country / city>, <UTC time>
Target site:      <site>, shows <country>, reports IP <IP or "not shown">
Client:           <browser or library and version>
Fresh profile:    <same / fixed>
IPv6 at home:     <yes / no>

On our ports you can also request a new address from the dashboard or the API with POST /api/v1/proxies/{slotId}/switch, at most once per 5 minutes per port (a faster call returns 429 with a Retry-After header). The carrier assigns the address, so a new IP is not certain, and the new range may sit in a different database entry. Re-run steps 2 and 3 after each change.

Frequently asked questions

Why does my proxy show the wrong country?

There are three usual causes. The app is not sending every request through the proxy (a bypass list, environment variables or an IPv6 path), the site reads a location other than the IP (browser geolocation, timezone or a saved account country), or a geolocation database places the exit range somewhere else. Look up the exit IP in two databases first, then rule out the client.

Why do two IP lookup sites show different locations for the same IP?

Each vendor builds its own database from its own sources. In our lookup on 29 November 2026 at 18:32 UTC, ipinfo placed 8.8.8.8 in Mountain View, California and ip-api placed it in Ashburn, Virginia. The country matched and the city did not. That address is anycast, which makes it an extreme case, but vendors can disagree on other ranges too.

Is city-level location reliable for mobile IPs?

Treat it as a hint. MaxMind states that IP addresses used in mobile networks may be used by phones across a large distance, and it leaves out city and postal data when it cannot be specific. Check the country and the carrier, not the city.

How do I get a wrong IP location corrected?

MaxMind and ipinfo both have data correction forms, and network operators can publish an RFC 8805 geolocation feed for their own prefixes. Do not plan around a date: a site may run an older copy of a database, so a correction can take a while to reach the site you care about.

What should I send support when the proxy location looks wrong?

Send the exit IP, the time of each lookup in UTC, the two databases and what each returned, the client you used, whether a fresh profile changed anything, and the IP the target site reported if it shows one. Never send your proxy password or a full proxy URL with credentials.

Sources & tools referenced

Related guides

Verify the exit location before choosing a country plan

Each port is one physical 4G/5G modem with its own SIM, in the United States, the United Kingdom or the Netherlands. Start with the €5 plan for 10 hours, run the worksheet against the exit IP, then pick a 7 or 30 day plan. Plans do not auto-renew.