Why the Windows VPN tunnel fails
If you have vpn not connecting on Windows 11, the built-in client may sit on “Connecting,” return a number such as 809 or 720, or appear connected while no site will load.
Table of Contents
The usual causes are a bad profile, a blocked UDP port, a broken WAN Miniport adapter, or a DNS problem after the tunnel comes up.
The Windows VPN page in Settings uses built-in protocols such as IKEv2, L2TP/IPsec, SSTP, and PPTP. Those tunnels depend on hidden WAN Miniport adapters, the RasMan and related Remote Access services, and a clear path through your router and firewall.
A typo in the server name or the wrong VPN type can look exactly like a dead network.
It also helps to separate a failure at Connect from a tunnel that comes up and then drops, or from vpn not connecting only on one network.
A home router that blocks UDP is a different problem from a certificate that never matches. Write down the exact error and whether a hotspot test works before you uninstall anything.
This article focuses on the VPN tools that ship with Windows, not a third-party vendor app. If you use a commercial app, try its own protocol switch first, then come back to the Windows adapter steps.
Microsoft explains how to start a profile in Connect to a VPN in Windows. Deeper Remote Access troubleshooting is in Guidance for troubleshooting Remote Access (VPN and AOVPN).
If regular browsing already fails before you start the VPN, fix the base network first with our Wi-Fi connected but no internet guide.
Before you start
Write down the VPN type, server address, and how you sign in, as your IT team or VPN host provided them. Recreating a profile with the wrong type is one of the fastest ways to stay stuck.
Decide whether the failure is a connection error or a tunnel that comes up with no web access. Those two symptoms take different paths. Also test the same credentials on a phone hotspot. If the VPN works on the hotspot but not on home Wi-Fi, your router is the likely block.
If this is a work or school VPN, ask IT before you change registry values or reset the network stack. A managed profile can be reapplied at the next sign-in.
Create a restore point before you add the L2TP NAT registry value in Fix 3, or before a Network reset. Press the Windows key, type Create a restore point, select the system drive, and choose Create.
Work through the checklist below in order. After each change, select the VPN in Settings and click Connect.

Use the checklist above as you work. Success is a Connected status and a site that loads while the tunnel is up.
Fixes when vpn not connecting in Windows 11
1. Recreate the Windows VPN profile
A stale profile is the fastest thing to rule out.
- Open Settings > Network & internet > VPN.
- Remove the existing connection if it keeps failing.
- Click Add VPN, set VPN provider to Windows (built-in), and enter the server name, VPN type, and sign-in details from your IT team or VPN host.
- Save the profile, then select it and click Connect.
Match the VPN type to what the server actually uses (IKEv2, L2TP/IPsec, PPTP, or SSTP). A wrong type looks like a dead server.
If the profile was created by a company app, removing it may only help until the management tool puts it back. In that case, confirm the official settings with IT rather than inventing a type. After you save a new profile, try Connect once before you change adapters or the registry.
2. Clear a built-in VPN client error
A built-in VPN client error often means the protocol, pre-shared key, or certificate does not match the server.
- Open the VPN properties and confirm the type, username, and password or certificate.
- For L2TP/IPsec, confirm the pre-shared key, or install the required certificate in the Current User or Local Computer store as instructed by your admin.
- Try the same credentials on a phone hotspot to see whether your home router is blocking the protocol.
- If a school or work network requires a proxy, set that in Settings > Network & internet > Proxy, or turn a leftover proxy off if this is a home PC.
If the error mentions a certificate or “IKE authentication,” the problem is almost always the credentials or the VPN type, not the Wi-Fi adapter.
Copy the exact message before you close it. A built-in VPN client error that names a certificate is a different fix from a timeout. Do not change WAN Miniport adapters until the type and credentials are known to be correct.
If the provider gave both an IKEv2 address and an L2TP address, make two test profiles rather than editing one profile over and over. That makes it obvious which type works, and it keeps a known-good entry you can copy later.
3. Fix VPN error 809 on L2TP and IKEv2
VPN error 809 means Windows did not get a response from the VPN server in time. Firewalls, NAT routers, and blocked UDP ports are the usual reasons, especially on L2TP/IPsec.
- Confirm the server is online and that you can reach it from another network, such as a phone hotspot.
- On your router, allow the ports your protocol needs. L2TP/IPsec commonly uses UDP 500 and UDP 4500. SSTP uses TCP 443.
- If you are behind NAT and use L2TP/IPsec, add the well-known encapsulation value:
- Press Windows key + R, type
regedit, and press Enter. - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent. - Create a DWORD named AssumeUDPEncapsulationContextOnSendRule and set it to 2.
- Restart the PC and try the VPN again.
- Press Windows key + R, type
- Temporarily disable a third-party firewall to test, then allow the VPN if that was the block.
Only add that registry value on a PC you own, and only for L2TP/IPsec NAT issues. Do not use it as a generic “make every VPN work” switch.
If VPN error 809 also appears on a phone hotspot, the server or the account is more likely than your home router. If it appears only at home, look at the router firewall, SIP or VPN passthrough settings, and any “AP isolation” feature.
Write down which networks work. If a coffee-shop network and a phone hotspot both succeed, the home router is the next place to look. If no network works, stay with the profile, certificate, and adapter checks on the PC.
4. Reinstall WAN miniport drivers
Windows uses hidden WAN Miniport adapters for the tunnel. If those devices are corrupted, every built-in profile can fail.
- Right-click Start and open Device Manager.
- Open the View menu and choose Show hidden devices.
- Expand Network adapters and look for WAN Miniport entries such as IP, IPv6, IKEv2, L2TP, PPTP, and SSTP.
- Right-click a problem entry, choose Uninstall device, and repeat for the WAN Miniport adapters tied to your VPN type.
- Restart the PC so Windows rebuilds the WAN miniport drivers, then try the VPN again.
Do not uninstall your Wi-Fi or Ethernet adapter here. You only need the WAN Miniport devices.
If a WAN Miniport device shows a warning immediately after the restart, scan for hardware changes, then try the VPN once more. Rebuilding the WAN miniport drivers is especially useful when every Windows VPN profile started failing after the same update.
5. When you have VPN connected but no internet
If the status says connected and you still have VPN connected but no internet, the tunnel is up, but DNS or routing is wrong.
- Disconnect the VPN and confirm that the web works without it.
- Reconnect, then open Settings > Network & internet > VPN, select the connection, and check any “use default gateway” or split-tunnel option your admin provided.
- Open Terminal and run
ipconfig /flushdns, then try the site again. - If only some names fail, try a known public site by address to see whether DNS is the issue. Our DNS_PROBE_FINISHED_NXDOMAIN guide covers DNS lookup failures.
If the VPN works on a phone hotspot but not on your home Wi-Fi, the router may be blocking the protocol. A DNS server not responding from another PC or phone is a useful test, not a permanent fix.
VPN connected but no internet can also happen when the tunnel takes over default routing and the VPN DNS servers are unreachable. If your admin allows split tunneling, try that setting. If this is a full-tunnel work VPN, the server-side DNS is the item to confirm with IT.
6. Reset the Windows network stack
If every profile still fails, reset the sockets and network adapters, then add the VPN again.
- Right-click Start and open Terminal (Admin).
- Run these commands, one at a time:
netsh winsock reset netsh int ip reset ipconfig /flushdns
- Restart the PC.
- If it still fails, open Settings > Network & internet > Advanced network settings > Network reset, then set the VPN up again after the restart.
Network reset removes and reinstalls adapters. You will need to re-enter Wi-Fi and VPN details afterward. Use the narrower netsh commands first, and use Network reset only if those are not enough.
After the restart, add the profile once and try Connect before you change the registry again. A reset can also rebuild hidden adapters, which is why it often helps when every built-in profile failed at once.
If the first Connect attempt after a reset still sits on “Connecting,” confirm the VPN type and then test a hotspot so you know whether the PC or the network is next.
How to prevent it from coming back
After the VPN connects reliably, keep a note of the working type, server, and whether the NAT registry value was required. After a Windows feature update, try Connect once. Updates can rebuild adapters and drop a handmade profile option.
Avoid random “VPN repair” utilities. If you install a new router, test the VPN before you assume the profile broke.
A new firewall default is a common reason VPN error 809 returns on an otherwise unchanged PC. If a built-in VPN client error about a certificate appears after a router change, the profile and certificate are still the first things to recheck, not the WAN adapters.
On a work VPN, let the official client or management tool keep the profile current. Manual edits can be overwritten at the next sign-in. If vpn not connecting starts on the same day a company portal updates, ask IT before you recreate the profile a second time.
Deeper repair options
Use these when vpn not connecting continues on every profile, including after a network reset.
A clean boot can show whether a third-party firewall or security suite is blocking the tunnel. Press Windows key + R, type msconfig, hide all Microsoft services, disable the rest, and restart. Then try Connect again.
Event Viewer often records the failure even when Settings only says “Connecting.” Check Windows Logs > System and Application for RasClient, RasMan, or IKE errors at the time of the attempt. A certificate or authentication error should send you back to Fix 2, not to another adapter uninstall.
If the WAN Miniport devices will not rebuild, run DISM.exe /Online /Cleanup-Image /RestoreHealth and sfc /scannow, then restart and scan for hardware changes. An in-place Windows 11 repair is a last resort when the Remote Access stack is damaged, and you should back up your files first.
If you still have VPN connected but no internet after those repairs, the stack is probably fine and the problem is DNS or routing.
Go back to Fix 5 rather than repairing Windows again. Rebuilding the WAN miniport drivers a second time is only useful if Device Manager still shows warnings on those hidden adapters.
Quick reference
| What you see | Try this first |
|---|---|
| The connection sits on “Connecting” | Recreate the profile and confirm the VPN type (Fixes 1 and 2) |
| Error 809 or a timeout | Test a hotspot, allow UDP ports, then set the NAT value for L2TP (Fix 3) |
| Every Windows VPN fails at once | Rebuild the WAN Miniport adapters (Fix 4) |
| Connected, but no websites load | Flush DNS and check the gateway setting (Fix 5) |
| Nothing works after a Windows update | Reset Winsock and, if needed, use Network reset (Fix 6) |
| Works on a hotspot, fails on home Wi-Fi | Adjust the router or the L2TP NAT value (Fix 3) |
FAQ
Is this for the built-in Windows VPN or for a vendor app?
These steps are for the Windows VPN page in Settings. A vendor app has its own protocol switch, but it still uses Windows adapters, so the WAN Miniport and network reset steps can help both. If only the vendor app fails, use its protocol or server switch first.
What does error 809 actually mean?
Windows did not receive a timely response from the VPN server. The server may be down, or something on the path is blocking the protocol, often UDP 500 or 4500 for L2TP/IPsec.
VPN error 809 on every network points at the server or the account. The same error only at home points at the router.
Will a network reset delete my files?
No. It removes network adapters and their settings, then Windows reinstalls them. You will need to rejoin Wi-Fi and recreate the VPN profile. Your documents are not affected.
Why does the VPN work on my phone but not on the PC?
The phone uses a different client and sometimes a different protocol. On the PC, confirm the VPN type, then test from a hotspot to see whether the home router is the block. A built-in VPN client error about a certificate is also PC-specific.
Should I turn off IPv6 to make a VPN work?
Only as a test, and only on the VPN adapter if your admin says the server does not support it. Do not disable IPv6 on every adapter as a habit. If you still have VPN connected but no internet, DNS and the default gateway are the better first checks.
Do I need the AssumeUDPEncapsulationContextOnSendRule value?
Only for some L2TP/IPsec connections that fail behind NAT, often with error 809. It is not required for SSTP or for every IKEv2 server. Create a restore point first, and add it only on a PC you own.
Can a work policy block a homemade VPN profile?
Yes. A managed PC can ignore or replace a profile you created in Settings. If the official work VPN still fails, share the exact error with IT rather than fighting the policy.
A homemade profile can also look as if it “disappeared” after a restart when a management tool reapplied the official one. That is expected on a work device, and it is not a reason to reset the whole network stack.





