Can a Border-Crossing Mobile Network Change Your Public IP During a VPN Session?
When your phone hops onto a foreign carrier at a border, the underlying IP changes. Here is what sites see while the VPN is on, why the tunnel may drop, and what to check.
10 min readUpdated Nov 27, 2026By XPASS Editorial Team

You are on a coach, a ferry or a train heading across a border. Somewhere near the checkpoint your phone drops a bar of signal, shows a different carrier name, perhaps buzzes with a welcome text from a new network, and then carries on. If your VPN was connected the whole time, a fair question follows: did your public IP change, and did a website briefly see who you really are?
The short version is that two different addresses are involved, and only one of them changes at the border. The address your mobile carrier assigns to your phone does change, because a different network is now carrying your traffic. The address that websites see while the VPN is connected is the VPN exit, which belongs to the server you chose and does not move just because your phone changed carrier. The tunnel itself, however, may drop and reconnect during the switch, and that is where mistakes and brief exposure can happen. This article walks through what changes, what does not, and how to check afterwards. It is a narrow look at the border moment; for the broader picture of using a VPN on a foreign SIM, see VPN while roaming: data and speed considerations.
Two addresses, two jobs
It helps to separate the addresses in play, because the question "did my public IP change" has a different answer depending on which one you mean.
- The carrier address. When your phone uses mobile data, the network gives it an address to reach the internet. Often this is a private or shared address behind carrier-grade NAT, so many customers share one public address. This address belongs to the carrier and the country you are connected through. It changes when you move to another network.
- The VPN exit address. When the VPN is connected, your traffic travels inside an encrypted tunnel to the VPN server and comes out onto the internet from there. Websites see the server's address, not your carrier's. This address is chosen by the server location you picked, not by where your phone is standing.
Your carrier, on the other hand, still sees that your phone is talking to the VPN server. The tunnel hides the content and the destination sites from that carrier, but not the fact that you are connected to a VPN.
So when you cross a border, the carrier address changes, the VPN exit stays tied to the server, and the question becomes whether the tunnel survives the switch.

What actually happens at the border
The details depend on your phone, your SIM or eSIM, and the carriers on both sides, so treat this as the common pattern rather than a rule.
- The phone loses the old network. As you move away from the towers of the first country, signal fades. Near a border the phone may also cling to a distant tower from the old country while a closer one from the new country is available.
- The phone selects a new network. With automatic network selection, the phone picks a visible partner network of your carrier or eSIM provider. Which networks are available depends on the roaming arrangements behind your plan. If you are curious about how that works, which country your eSIM data actually exits from covers the routing side.
- Mobile data restarts on the new path. The phone gets a new address from the new network. Any connection that was open over the old address, including your VPN tunnel, is no longer attached to a working path.
- The VPN notices, or does not. The app may detect the change and rebuild the tunnel quickly. It may instead wait until it sees that traffic is failing. Some apps show a reconnecting state; others keep showing connected for a while even though nothing is flowing.
The gap can be a second or two on a well-covered crossing, or several minutes on a mountain pass, a rural border or in a tunnel. Passport queues, border zone dead spots and phones set to fixed networks all make the pause longer.
What websites and apps can see
Whether a site sees your real carrier address depends entirely on the tunnel state at the moment the request leaves your phone.
| Situation at the border | Address a website sees | What to know |
|---|---|---|
| Tunnel stays up through the switch | VPN exit address | Nothing changes from the site's side, apart from a pause |
| Tunnel drops and the app blocks traffic until it reconnects | No traffic reaches the site during the gap | Pages stall instead of loading over the open network |
| Tunnel drops and nothing blocks traffic | New carrier address | Any request that leaves the phone during the gap uses the carrier path |
| Tunnel reconnects after the switch | VPN exit address again | It may be the same server or a different one, depending on app settings |
| VPN was off before the crossing | New carrier address | The VPN cannot help if it is not connected |
Notice what this table says. Your real IP is visible to sites only when traffic goes out outside the tunnel. A carrier change by itself does not leak anything while the tunnel is up. The risk is the gap between "tunnel dead" and "tunnel rebuilt".
It is also worth remembering that your carrier address, even when exposed, is not a precise street address. It usually points to a region or a carrier gateway, and after a border crossing it will look like the new country. That is useful context for why some sites or apps suddenly show different language, currency or content once you have crossed, even when you think the VPN should be handling it. If an app still shows the wrong region while the VPN is on, the article on why a VPN can show the wrong location explains the usual causes.
Why the tunnel may drop
A VPN tunnel is a live conversation between your device and one VPN server, tied to the network path your device had when it started. When the path changes, the conversation has to find its way again.
- A new source address. The server was talking to your old address. After the switch your packets come from a new one, so the server must accept the change or start a fresh session.
- A gap in coverage. If the phone had no usable data for longer than the tunnel's patience, the app or the server may close the session.
- A different network behaviour. The new carrier may handle certain traffic differently, for example through address sharing or different filtering. Some apps and ports behave differently across networks.
- Phone power saving or background limits. The phone may pause background apps while it renegotiates the network, and the VPN app may be slow to react.
Some tunnels are built to recover from an address change smoothly, and some need a full reconnect. This depends on the app and the connection method, so we make no promise either way. A general explanation of why moving between networks makes tunnels reconnect is in our article on switching from Wi-Fi to 5G.
Before the crossing: a short preparation
A few minutes of preparation make the border moment much calmer.
- Know your plan. Check that the SIM or eSIM you are using actually works in the next country, and whether data roaming needs to be on. Many connection problems after a border are plan problems, not VPN problems.
- Update and sign in early. Open the VPN app while you still have a good connection, and confirm your pass is active. Signing in on a weak border network is miserable.
- Note your current exit address. Open an IP checking page and write down the address, or take a screenshot. You will compare it later.
- Look at the app settings. If your app offers a kill switch, a block-traffic option or an auto-reconnect option, decide now whether you want it on. Do not change settings you do not understand, and keep defaults unless support suggests otherwise.
- Consider doing sensitive tasks later. If you have a banking login or a document upload to do, do it before or after the crossing, not during the weakest signal.
After the crossing: what to check
When the phone shows signal and the carrier name has settled, go through this order.
- Confirm data works at all. Open a website with the VPN paused or a simple app. If nothing loads, the problem is the mobile data setup rather than the VPN. Check data roaming, the selected SIM line, and whether a plan activation is needed.
- Open the VPN app. Look at the status. If it says disconnected or reconnecting, wait a short while, then disconnect and connect again.
- Do not trust the label alone. A status that says connected can be stale right after a network change. Load a web page; if it hangs, turn the VPN off and on once.
- Check the exit address. Open an IP checking page and compare with the address you noted earlier. If it matches the VPN exit you expect, traffic is leaving through the tunnel. If it shows your carrier, the tunnel is not carrying that traffic.
- Check for a stuck connection. If you use a messaging, call or game app, expect it to reconnect by itself. If it does not, close and reopen it so it opens new connections through the current tunnel.
- Re-test the app that mattered. If you were using a specific banking, streaming or work app, open it and confirm it behaves normally. Some apps flag a sudden network change and may ask you to sign in again.
If the VPN will not reconnect at all, what to do when a VPN will not connect offers a step-by-step list.

A plain example
Nok takes a bus from one country to its neighbour. Before the border she opens the VPN, connects, and checks an IP page that shows the VPN exit address. She writes it down. At the checkpoint the bus stops for forty minutes; her phone flickers between two carrier names and finally settles on the new country's partner network.
When data returns, the VPN app still says connected, but a page will not load. Nok turns the VPN off and on. It reconnects, and she loads the IP page again. The address matches the VPN exit she noted. Her messaging app took a minute longer to catch up, so she closes and reopens it. During the gap nothing reached any site from her phone, because the app was holding traffic while the tunnel was down.
Had her app not blocked traffic during the gap, a background app that happened to refresh in those seconds could have reached its server over the new carrier network with the carrier address. That is the case to understand: it is brief, it affects only what is sent during the gap, and it is the reason to check the status after a crossing rather than assume.
Limits and what to watch for
A VPN helps with one thing here: while the tunnel is up, sites see the VPN exit instead of your carrier's address. It does not do the following.
- It does not stop the new carrier from knowing your phone, SIM and approximate location. The network always knows which tower you use.
- It does not keep the tunnel alive through a real coverage hole. If there is no signal, there is no tunnel.
- It does not remove roaming charges or fix a plan that has no data in the new country.
- It does not guarantee that every app or site behaves the same after you cross. Apps that use location services, SIM country or account region may still change behaviour.
- It does not make you anonymous. Your account logins, device identifiers and habits still identify you to the services you use.
Be careful with advice that tells you to leave the VPN on and ignore the border. A calm approach is to treat a crossing as a small network event: verify, reconnect if needed, and then carry on. Avoid using a VPN or any other tool to get around rules at the border or in the country you are entering. Respect local laws and each service's terms.
Also note that on a phone with two lines, the line used for data can switch at the border. If you use a travel eSIM next to a home SIM, how a VPN behaves when dual eSIM data switches is a closer match for what you are seeing.
Common mistakes
- Assuming connected means safe. Check traffic, not just the label.
- Reconnecting repeatedly in a dead zone. Wait until the phone actually has data; repeated attempts just drain battery.
- Forgetting the SIM line. A phone with two lines may use the wrong one for data after the crossing.
- Testing the IP only once. Check again after a few minutes, because a late reconnect can change the server.
- Blaming the VPN for a plan problem. If data does not work with the VPN off, the VPN is not the cause.
- Doing logins during the gap. Wait for a stable connection before signing in to sensitive accounts.
For a similar situation on a moving vehicle, VPN on a train when Wi-Fi switches between cell towers covers the repeated-handover version of the same problem.
Summary
Crossing a border changes the carrier network and the underlying address your phone uses, but while the VPN tunnel is connected, sites see the VPN exit address instead. The risk lies in the moment the tunnel drops and rebuilds, so wait for signal, confirm the VPN status, reconnect if needed, and compare the exit address with the one you noted before the crossing. If you travel often and want a simple way to cover those days, you can look at the options on the XPASS pricing page.
Frequently asked questions
Does my public IP change when my phone switches to a foreign mobile network at a border?
The address your carrier gives your phone does change, because a different network is now carrying your traffic. While the VPN tunnel is connected, websites see the VPN exit address instead of that carrier address. If the tunnel is off or has dropped, sites can see the new carrier address.
Will my VPN disconnect when I cross a border?
It might. Moving to a new network can interrupt the connection for a few seconds or longer, and the tunnel may need to rebuild. Some apps recover by themselves and some need you to reconnect. Check the app status after the phone shows signal again.
Will websites see my real IP during the switch?
Only if traffic leaves the phone outside the tunnel. That can happen if the VPN is off, if it has dropped without a block in place, or if an app is excluded from the tunnel. A kill switch, if your app offers one, is designed to hold traffic while the tunnel is down.
Does the VPN exit address change when I cross the border?
Not by itself. The exit address belongs to the VPN server you chose. If the tunnel reconnects it may use the same server or a different one depending on your app settings, so the exit address can differ after a reconnect.
What should I check after crossing a border with a VPN on?
Wait for signal and data, open the VPN app and confirm it says connected, reconnect if it does not, then load an IP checking page and compare the address with the one you saw before. Also confirm data roaming and the right SIM or eSIM line are selected.
References
About the author

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 passesKeep reading

VPN Basics
Can a VPN Session Continue After Your Public IP Address Changes?
Your public IP address can change while a VPN is connected. Sometimes the session carries on, sometimes it stalls and must be rebuilt. Here is how to tell which, and why.
11 min read

VPN Basics
What Is a Public IP Address?
Your public IP address is the address websites see when you connect. This guide explains how it is assigned, how it differs from the private address on your home network, and what it does and does not reveal.
9 min read

VPN Security
What Is a VPN Kill Switch?
A kill switch stops your device from quietly falling back to an unprotected connection when the VPN drops. Here is how the idea works and how to check it.
12 min read