Skip to content

Why Does a Browser Still Show Your Old Location After a VPN Connects?

You connected the VPN and the IP address changed, yet a map or a store page still shows your real town. The browser has several other ways to know where you are. This guide walks through them in order.

10 min readUpdated Nov 13, 2026By XPASS Editorial Team

Why Does a Browser Still Show Your Old Location After a VPN Connects?

You connect the VPN, an IP lookup page shows the address you expected, and then you open a map, a weather page or an online shop and it greets you with your real town. It feels as if the VPN did not work. In most cases it did what it is designed to do: it changed the network address that websites see. The browser, however, has other ways to describe where you are, and some of them never depended on your IP address in the first place.

This guide takes the narrow angle of the browser itself. It explains the signals a browser can offer a website, which of them a VPN changes and which it does not, and a short order of checks that finds the cause without guessing. If an IP lookup page itself shows the wrong place, that is a different problem, covered in why your VPN shows the wrong location. If you suspect an old cached lookup, see stale DNS cache and VPN location.

What a browser can tell a website about your location

A website has no single "location" field to read. It builds a picture from several sources, and each source has its own rules.

  • The IP address of the connection. This is the address the site sees when your request arrives. It is described in RFC 791. Sites look it up in a database to guess a country or city. A VPN replaces this address with the one belonging to the VPN server.
  • The browser location permission. Browsers include a location feature that a site can request. If you allow it, the browser asks the operating system for a position and hands it to the site. This does not come from your IP address.
  • Operating system location services. On phones and laptops, the position can come from GPS, from nearby Wi-Fi networks, from mobile towers or from a mix. These are properties of the device and its surroundings.
  • Language and time zone. Your browser tells sites its preferred languages and the time zone of the device. A site can notice that a connection seems to come from one country while the clock says another.
  • Stored data on the site. Cookies, local storage and saved account settings can hold a region, a city, a postcode or a preferred store. The site reads them back on your next visit.
  • Your account. If you are signed in, the site may use the country on your profile, your billing address or your delivery addresses.

Only the first item is something an ordinary VPN changes. The rest either come from the device or from data that was saved earlier. That is why the same page can show a VPN address in one place and your real town in another.

What a VPN changes and what it does not

A VPN sends your traffic through an encrypted connection to a server and from there to the internet. Websites see the server's address instead of the one your internet provider gave you. The details are explained in the general overview of what a VPN protects.

What this means for location is limited and fairly simple:

Signal Does the VPN change it? Why
Public IP address Yes, normally Sites see the VPN server address
Location named by an IP database Usually, but databases can disagree The label depends on the site's own data
Browser location permission result No It comes from the device, not the connection
GPS and Wi-Fi positioning No They are read by the operating system
Time zone and language No They come from device settings
Cookies and local storage No They were saved earlier on the device
Account country or address No They are stored on the site's side

A VPN is a tool for the network path. It does not edit what your device knows about itself, and it does not erase what a site already stored. Anyone who tells you a VPN makes your location impossible to work out is overstating it, and the limits section of this guide goes through the details.

Why the browser location permission shows the real place

The most common reason for an "old location" is the browser permission. When a site first asks "Allow this site to know your location?" and you press Allow, the browser remembers the decision for that site. The next time you open it, the site can request your position again, and the browser answers without asking.

The position it returns is not read from the IP address. The browser asks the operating system, and the operating system may use GPS, nearby Wi-Fi networks, mobile towers or the last known fix. None of that travels through the VPN tunnel as the thing that identifies you. So a weather page, a map or a delivery site that has permission can say "You are in your real town" while an IP lookup page right next to it says the VPN country.

This is also why the effect is easy to miss. The site does not show a message that says "I am using GPS". It just centres the map on your street.

To test it:

  1. Open the site and look for a small location icon in the address bar, or open the site settings from the padlock or settings icon next to the address.
  2. Find the Location entry. If it says Allow, that is likely the cause.
  3. Change it to Block, or to Ask, then reload the page.
  4. If the page now asks you to type a city or falls back to an address-based guess, the browser permission was the source.

Whether you want to keep that permission is your decision. For a map you use for walking directions, a precise position is useful. For a shop where you only want local prices from another place, it may not be.

Cached and stored location data on the site

If the permission is blocked and the site still shows the old place, look at what the site stored earlier. Many sites remember a region so that you do not have to choose it every time.

Common places this lives:

  • A cookie that stores a country, a language or a "home store".
  • Local storage in the browser, which a page can fill with a postcode or the last search area.
  • A saved choice in your account, such as a default delivery address.
  • A cached version of the page that the browser kept and is showing without asking the server again.

None of these change when the VPN connects. The site simply reads what it saved last time and assumes it is still true.

A quick way to test this is a private window. Private windows start with empty cookies and local storage, so the site cannot read the old region. Google's guide to browsing in private explains what a private window does and does not keep. If the private window shows the VPN location and the normal window shows the old one, stored data is the cause. Then clear site data for that one site rather than for the whole browser, so that you do not sign out of everything.

Do not treat private mode as a privacy tool for this purpose. It only starts a fresh session on your device. It does not hide your IP address, and the sites still see the connection normally. Clearing cookies may also sign you out and remove saved preferences, so do it for the site that is misbehaving rather than for everything.

Time zone, language and account clues

Even with a blocked permission and clean storage, a site may still guess that something does not match. A browser also shares a preferred language and the time zone of the device. If your IP address looks like it belongs to one country while your device clock and language say another, the site may choose a mixed result: the currency from the IP, the language from the browser, the shipping options from your account.

This is not a fault. Each site decides how to weigh those signals, and different sites weigh them differently. A news site may follow the language setting. A shop may follow the IP address for the currency and the account for the delivery address. A streaming service may follow the account country for its catalogue. None of this is something you should expect a VPN to align for you.

A practical approach is to decide what you actually want from the page, then look at the matching setting:

  • If you want a page in a different language, change the language setting on the site or in the browser.
  • If you want local prices to follow the connection, sign out and test in a private window, because a signed-in account may override the IP address.
  • If you want a map to follow the connection, block the location permission so that the map falls back to an address-based guess.

Please also keep in mind that some services ask you to confirm your region through your account or payment details, and those rules belong to the service. A VPN is not a way around them, and it is not worth trying to work around a site's terms. If a service is not available where you are, the honest answer is that you may not be able to use it from there.

A step-by-step order of checks

Change one thing at a time and reload after each step. That way you can see which step solved it.

  1. Confirm the IP address. Open an IP lookup page and note the address and country. If it still shows your real address, the VPN is not carrying that traffic. Check the connection first, using the browser VPN leak test to see what your browser is exposing. Stop here if the lookup page is wrong, because everything below assumes it is right.
  2. Try a private window. Open the problem site there. If the location is now correct, stored data or an extension in the normal window is involved.
  3. Block the site's location permission. Set it to Block, reload, and see whether the page changes.
  4. Clear data for that site only. Remove its cookies and site data, then reload. Do not clear everything unless you have to.
  5. Check the operating system location setting. On a phone or laptop, location services can be set to off, or to allow or deny each browser. Turning it off for the browser removes the position source.
  6. Compare with another browser. If a second browser behaves correctly, the difference is saved settings in the first one.
  7. Sign out and test. If the page now follows the IP address, your account country or address was the cause.
  8. Wait and reconnect. Some sites keep a location guess for a while. Disconnect, reconnect, close the browser fully and try again.

If you reach the end and the site still shows the old place, its own IP database may be out of date, which is the topic of the sibling guides linked above.

A plain example

Suppose you travel and connect the VPN on your laptop. An IP lookup page reports a different country, which is what you expected. You then open a weather page that opens centred on the town you are physically in.

You open the site settings and see Location set to Allow, a choice you made months ago. You set it to Block and reload. The page now asks you to search for a city. You type a city and it shows that forecast, which is exactly how it should behave.

Next you open an online shop. It shows prices in your home currency. You open it in a private window and it shows the VPN country's currency. The cause there was a cookie in the normal window that stored your region. You clear that site's data, sign back in and the shop follows the connection.

In both cases the VPN was working. The browser simply had other information that had nothing to do with the connection.

Limits and things to watch for

Some caution keeps expectations realistic.

  • A VPN does not control GPS or device location. It cannot and should not alter what the operating system reports. Do not rely on it for that.
  • Do not use fake location tools casually. Some extensions claim to override the browser location. They are separate software, may collect data themselves and may break sites. This is not something XPASS provides, and there is no VPNclient browser extension.
  • Blocking location can break useful features. Maps, delivery tracking and emergency features may need a real position. Re-allow it for the sites where you want it.
  • Sites may disagree with each other. Two services can show two different places for the same connection, because each uses its own database, rules and stored data.
  • Some services check more than your IP. Banking, payments and account security checks often compare several signals. Seeing a different location after connecting may simply trigger extra verification, which is normal.
  • Respect the rules of the service you use. This guide is for understanding why a page behaves as it does, not for avoiding legal or contractual limits.

For a wider look at what apps and sites can learn about you, why apps can still know your location with a VPN covers phones and apps, and the EFF Cover Your Tracks tool shows how identifiable a browser looks.

Summary

When a browser still shows your old location after a VPN connects, the VPN has usually changed the IP address correctly and the browser is using something else: a location permission you granted earlier, GPS or Wi-Fi positioning from the device, stored cookies and settings, your time zone and language, or your account details. Check the IP address first, then work through a private window, the site's location permission, site data, the operating system setting and your account, changing one thing at a time. If you would like a VPN pass that you can switch on only when you need it and that does not renew by itself, you can look at the options on the XPASS pricing page.

Frequently asked questions

Why does my browser show my real town when the VPN is connected?

A VPN changes the IP address that websites see on the connection. A browser can also offer a site a location taken from the device, such as GPS, nearby Wi-Fi networks or an operating system location service, and that signal does not go through the VPN tunnel in the same way. If you gave the site permission to use your location, it may show your real position even though your IP address points elsewhere.

Will turning off the browser location permission fix it?

Often yes. Setting the site's location permission to Block or Ask removes the most precise signal the site can read. The site can still use the IP address, your language, your time zone, saved account details and cookies, so a few other clues may remain.

Do I need to clear cookies after connecting a VPN?

Not always, but it can help. Sites sometimes store a region, a postcode or a store choice in a cookie or in local storage, and they keep using it until it is cleared or expires. Testing in a private window shows quickly whether stored data is the cause.

Can a VPN change the location my browser reports?

A VPN does not spoof GPS or device location services. It changes the network path and the IP address that sites see. If a site relies on device location rather than the IP address, the VPN will not change what it shows.

How can I tell which signal a site is using?

Compare an IP lookup page with the site itself, then try a private window, a different browser and a blocked location permission, one change at a time. The step that changes the result points to the signal in use.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

VPN Basics

Why Your VPN Shows the Wrong Location

When a site thinks you are in the wrong city or country while a VPN is on, the cause is usually the database behind the guess, not the VPN itself. This guide explains how location lookups work and how to check them.

9 min read

Troubleshooting

Can a Stale DNS Cache Make a VPN Location Look Incorrect?

Sometimes a site still behaves as if you were in your old location after you connect a VPN. A stale DNS cache can be one cause, though not the most common one. This guide shows how to tell and how to clear it.

10 min read

Privacy Guides

Why Can Apps Still Know Your Location with a VPN?

A VPN changes the address a site sees, not the GPS, Wi-Fi and account clues your phone offers. Here is what apps use and how to limit it.

9 min read