How Can You Fix a VPN Route That Persists After Disconnecting on Windows?
Sometimes Windows keeps a VPN route after the tunnel closes, and websites stop loading. This guide shows how to find the leftover route and clear it safely.
10 min readUpdated Nov 9, 2026By XPASS Editorial Team

You press disconnect in your VPN app, the icon turns grey, and then the internet stops working. Pages hang, apps say they are offline, yet Wi-Fi shows as connected. Reconnect the VPN and everything works again, which is confusing. The usual culprit is a leftover route: Windows still has a rule telling it to send some or all traffic toward the VPN tunnel, even though the tunnel is gone.
This guide explains what a route is, how to spot one that should have disappeared, and how to remove it with the least risk. It stays focused on the leftover-route case. If you suspect two competing default routes at the same time, read why a PC can have multiple default routes. If the VPN adapter itself is missing or broken, see the Windows VPN network adapter guide.
What a route is and why a VPN adds them
Every Windows PC keeps a routing table. It is a list of rules that answers one question for each packet: which door should this go out of? Each rule has a destination range, a gateway (the next device to hand the packet to), an interface (which adapter to use) and a metric (a cost used to choose between rules that overlap).
When you connect a VPN, the app or Windows adds routes so that traffic enters the tunnel. In a full tunnel, the VPN adds a default route, written as 0.0.0.0/0, with a better metric than your normal Wi-Fi route. In a split setup, it adds only a few specific ranges. The Microsoft Support page on connecting to a VPN in Windows describes the general connection flow, and the Internet Protocol specification (RFC 791) is the origin of the addressing idea behind these tables.
On a clean disconnect the VPN removes the routes it added, and your Wi-Fi or Ethernet route becomes the best choice again. A leftover route is what remains when that cleanup does not happen.

Why a route can stay behind after disconnecting
A route that persists is almost always a cleanup failure, not a mystery. Common causes:
- The app was closed or crashed while connected. If the process ends without a proper disconnect, nobody removes the routes.
- Sleep, hibernate or a lid close. Windows wakes up on a different network and the old VPN state no longer matches reality.
- A network change during disconnect. Switching from Wi-Fi to a phone hotspot at the same moment can interrupt the cleanup.
- A route added by hand or by a script with the persistent option. Persistent routes are saved on purpose and come back after every restart until you remove them.
- Another program also manages routes. Older VPN software, virtual machine tools, containers or security suites may add or restore routes of their own.
- A damaged or removed virtual adapter. The route may still mention an interface address that no longer exists.
Knowing which cause is likely helps you choose the fix. A one-time crash points to a simple reconnect and disconnect. A route that always comes back after a restart points to a persistent route or another program.
Symptoms that point to a stale route
Several symptoms look similar, so check a few before you change anything.
- Internet fails right after disconnecting the VPN, but works again when you connect it.
- Some sites load and others do not, especially sites on one specific address range.
- Only your local network works, such as a printer, but external sites do not.
- Ping to a public address times out, while ping to your home router answers.
- The problem follows the PC to other Wi-Fi networks, which suggests the issue is on the PC and not your router.
If other devices on the same Wi-Fi also lose internet, your router or provider is the likelier problem, and the steps in VPN connected but no internet may fit better.
Step 1: Reconnect, then disconnect cleanly
Start with the gentlest fix. Open the VPN app, connect, wait until it says connected, then use the app's own disconnect button once and wait a few seconds. This gives the app another chance to run its normal cleanup, and it often removes a route that a previous crash left behind.
Do not close the app from the system tray or end it from Task Manager while connected, because that is one of the ways the problem starts. After disconnecting, test one website and one app. If they work, you are done, and it is worth noting what you did right before the issue appeared in case it repeats.
Step 2: Read the routing table with route print
If reconnecting did not help, look at the evidence. Right-click the Start button and open Terminal (or search for Command Prompt), then run:
route print
The output has several parts. Focus on the IPv4 Route Table. The columns are Network Destination, Netmask, Gateway, Interface and Metric. Here is a plain example of what a leftover can look like after disconnecting:
| Network Destination | Netmask | Gateway | Interface | Metric |
|---|---|---|---|---|
| 0.0.0.0 | 0.0.0.0 | 192.168.1.1 | 192.168.1.25 | 40 |
| 0.0.0.0 | 0.0.0.0 | 10.8.0.1 | 10.8.0.2 | 5 |
| 192.168.1.0 | 255.255.255.0 | On-link | 192.168.1.25 | 296 |
The first row is a normal home route: the default route going to the home router at 192.168.1.1. The second row is the suspect. It is a second default route, to a gateway in a different private range (RFC 1918 defines these ranges, such as 10.x.x.x) and with a lower metric, so Windows prefers it. If the VPN is disconnected and that 10.8.0.x address no longer exists, traffic goes into a dead end. The numbers here are only an example; yours will differ.
Scroll to the bottom and read Persistent Routes. Anything there was saved on purpose and will return after a restart.
Step 3: Confirm the route belongs to the VPN
Before deleting anything, make sure the route is really a leftover. Use these checks:
- Compare the interface address with your adapters. Run
ipconfig /all. If the Interface address in the suspect route does not appear under any active adapter, the route points to something that is gone. - Look at the metric. A leftover default route with a lower metric than your real one is the usual reason traffic goes the wrong way.
- Check the time of the problem. If the route did not exist before you first connected the VPN, it came from the VPN or a related tool.
- Be careful with ranges you did not expect. Routes for
127.0.0.0(loopback),224.0.0.0(multicast),255.255.255.255and your own subnet are normal. Leave them alone.
If you are not sure, take a screenshot or copy the route print output to a text file first. That gives you a record to compare with and to show an IT person.
Step 4: Remove the leftover route
Open Terminal (Admin), because changing routes needs administrator rights. To delete a single route, use the destination and, if you want to be precise, the gateway:
route delete 0.0.0.0 mask 0.0.0.0 10.8.0.1
Replace the gateway with the one from your own table. The command removes only matching routes, so your real default route to the home router stays. Then run route print again to confirm it is gone, and test a website.
A few notes for safe use:
- Delete one route at a time and check the result.
- If a route was shown under Persistent Routes, the delete command removes the saved copy too in most cases. If it returns after a restart, something is re-adding it.
- Avoid
route -f. It clears the gateway routes from the table, which can cut your connection until you reconnect or restart, and on a work PC it can remove routes your company needs. - Do not copy commands from a forum without matching the addresses to your own table.

Step 5: Refresh the connection if the table looks right but nothing works
Sometimes the route is gone but Windows still holds stale network state. Try these in order, in an administrator terminal:
ipconfig /flushdnsclears cached name lookups that may still point to VPN-side answers.ipconfig /releasefollowed byipconfig /renewasks your router for fresh settings.- Turn Wi-Fi off and on, or unplug and replug Ethernet, to rebuild the connection.
- Restart the PC, which rebuilds all non-persistent routes at startup.
If that still fails, a deeper reset such as netsh winsock reset and netsh int ip reset followed by a restart can help, but it changes network settings, so do it only after the gentler steps and note that a work PC may have policies that conflict. The reconnect guide covers what to try when the VPN itself keeps dropping.
When the route keeps coming back
If a route returns after you delete it or after every restart, something is putting it back. Think about what is installed.
- Another VPN or remote-access tool. Having two such tools active can create overlapping routes. Disconnect one and test.
- A startup script or scheduled task. Someone, or a setup guide you followed, may have added a persistent route. It will be listed under Persistent Routes.
- Virtual machine, container or sandbox software. These add their own virtual networks, and some routes may be theirs, not the VPN's.
- Company management software. On a work PC, IT policies may add routes. Do not remove them yourself; ask IT.
For split tunneling, a few routes on purpose is normal. The split tunneling guide for Windows explains why some ranges are meant to stay outside the tunnel, so you can tell a designed route from a stale one.
Limits and what to watch for
A routing fix is useful but narrow, so keep expectations realistic.
- It does not prove your VPN or pass is at fault. A leftover route is a local Windows cleanup problem. Your login and pass are separate things.
- It cannot repair a failing adapter or driver. If route print shows nothing odd and the problem remains, look at the adapter instead.
- Reading is safe, changing is not always.
route printonly displays information. Delete commands change the system, so be deliberate. - Work and school PCs are different. Policies may restore routes or block changes. Ask the administrator.
- A VPN does not make a network safer by itself. Fixing a route simply returns normal connectivity; it does not guarantee privacy or protect you from other risks.
- Unknown routes deserve caution. Routes to unfamiliar addresses that you did not create are a reason to run a security scan or ask for help, not to keep deleting.
If you run into problems that go beyond a route, keep notes of the exact error text, when it began and what changed, such as an update, a new program or a new Wi-Fi network. That detail makes support faster.
Summary
A VPN route that persists after disconnecting is nearly always a cleanup failure: Windows still points some traffic at a tunnel that no longer exists. Start by reconnecting and disconnecting through the app, read the table with route print, confirm the suspect route belongs to the VPN, and delete only that route from an administrator terminal. Refresh the connection or restart if needed, and look for another program if the route keeps returning. Take small, checked steps and avoid clearing the whole table. When you want a simple way to get connected again, you can look at the options on the XPASS pricing page.
Frequently asked questions
Why does Windows keep a VPN route after I disconnect?
Usually the VPN app or Windows did not get the chance to clean up. A crash, a forced close, sleep or a network change during disconnect can leave a route in the routing table that points to an adapter or gateway that no longer exists. A route added with the persistent option also survives restarts on purpose.
How do I see the leftover route?
Open Terminal or Command Prompt and run route print. Look at the IPv4 Route Table and the Persistent Routes section. Routes that point to a gateway or interface address that belongs to the VPN, and that remain after you disconnected, are the suspects.
Is it safe to delete a route with route delete?
Deleting a single route you have identified as a leftover from the VPN is generally low risk, and your normal routes return after a reconnect or restart. Do not delete the routes that point to your home router or to the loopback range unless you know exactly why, and avoid clearing the whole table on a work PC.
Will restarting Windows fix it?
Often yes, because routes that were not saved as persistent are rebuilt at startup. A route saved with the persistent option, or one that a script or another program re-adds, can come back after the restart, so check route print again.
Could the leftover route be a sign of a hack?
Usually not. A stale route is typically a cleanup problem. If you see routes you did not create, to addresses you do not recognise, on a PC you did not configure, ask your IT team or run a trusted security scan before changing anything.
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

Troubleshooting
How Do Multiple Default Routes Cause VPN Connection Problems?
When Wi-Fi, Ethernet, a hotspot and a VPN each claim to be the way to the internet, traffic can take the wrong path. Here is how to read your routes and untangle the clash.
11 min read

Troubleshooting
Fix Missing VPN Network Adapter on Windows
A VPN that cannot find its network adapter will not connect. This guide shows where Windows hides adapters, how to bring one back and when to reset.
10 min read

Device Guides
How to Set Up VPN Split Tunneling on Windows
A practical Windows walkthrough for windows vpn split tunneling: choose what skips the tunnel, apply it through your app or a Windows VPN profile, and prove it works.
10 min read