How to set up a VPN on Windows 11
Two ways to connect a Windows 11 PC to a VPN: your provider's app, or the VPN client built into Windows Settings. Both take a few minutes.
Before you start
- An account with a VPN provider you trust
- Your Windows account must have administrator rights to add a VPN
- For the manual method: the server address, VPN type and sign-in details from your provider
- Windows Update is current, so network drivers are up to date
Not sure which provider to use yet? Start with how to choose a trustworthy VPN.
- Start
- Settings
- Network & internet
- VPN
Shortcut: press Win + A to open Quick Settings. Once a VPN is added, a VPN tile lets you connect with one click.
Set up a VPN on Windows 11 with your provider's app
The provider's app is the easiest option and usually includes a kill switch, DNS leak protection and modern protocols such as WireGuard.
Get the official app
Open the Microsoft Store or your provider's official account page and add the provider's Windows app. Confirm that the publisher name matches your provider.
Allow the changes
When Windows asks “Do you want to allow this app to make changes to your device?”, choose Yes. The app needs to add a virtual network adapter for the tunnel.
Sign in
Open the app and sign in with your VPN account.
Choose a protocol
Leave the protocol on Automatic or choose WireGuard for the best speed. See the VPN protocol comparison.
Connect
Select Quick connect or a server near you and click Connect. The app should show Connected and a new IP address.
Turn on the kill switch
In the app's settings, enable the kill switch and launch at startup. Windows has no built-in kill switch for third-party VPNs.
Set up a VPN manually with the Windows 11 built-in client
Use this method if your provider or employer gives you IKEv2, L2TP/IPsec or SSTP details. The built-in client does not support WireGuard or OpenVPN.
Open VPN settings
Go to Settings → Network & internet → VPN and click Add VPN.
Fill in the connection details
- VPN provider: Windows (built-in)
- Connection name: any name you will recognize
- Server name or address: from your provider
- VPN type: IKEv2 if offered; otherwise the type your provider specifies
- Type of sign-in info: usually User name and password, or Certificate
Save
Click Save. The new connection appears in the VPN list.
Connect
Click Connect next to the connection, or use the VPN tile in Quick Settings (Win + A).
Review advanced options
Under Advanced options on the VPN page, decide whether to Allow VPN over metered networks and Allow VPN while roaming.
How to check the VPN is working on Windows
Check the status
Settings → Network & internet → VPN should show Connected, or your provider's app shows a protected status.
Check the network adapter
Open Command Prompt and run:
ipconfig /allYou should see an adapter belonging to your VPN (for example a WireGuard or TAP adapter) with an IP address assigned.
Check DNS
Run:
nslookup example.comThe “Server” line should show your VPN provider's DNS server, not your router or ISP.
For a complete set of leak tests, see how to check if your VPN is working.
Recommended Windows VPN settings
| Setting | Where to find it | Why it matters |
|---|---|---|
| Kill switch | Provider app settings | Blocks traffic if the VPN drops. |
| Launch at startup | Provider app settings | Protects you from the moment Windows starts. |
| Auto-connect on untrusted Wi-Fi | Provider app settings | Connects automatically on public networks. |
| Public network profile | Settings → Network & internet → Wi-Fi → your network | Hides your PC from other devices on public Wi-Fi. |
Fixing common Windows VPN errors
| Problem | What to try |
|---|---|
| Error 809: the remote server is not responding | Common with L2TP/IPsec behind routers. Switch to IKEv2 or the provider's app, and check that your firewall or network does not block UDP ports 500 and 4500. |
| Error 691: access denied | The user name or password is wrong, or the sign-in type does not match. Re-enter your credentials exactly as your provider shows them. |
| Connected, but no internet | Disconnect and reconnect, try another server, then restart the PC. If it persists, turn off other VPN or proxy tools that may conflict. |
| Slow speeds | Choose a closer server, switch to WireGuard, and test on a wired connection to rule out Wi-Fi problems. |
| The VPN tile is missing in Quick Settings | Open Quick Settings, select the pencil icon, choose Add and pick VPN. |
Windows VPN questions
Does Windows 11 have a built-in VPN?
Windows 11 has a built-in VPN client that connects to IKEv2, L2TP/IPsec, SSTP and PPTP servers. It does not include a VPN service or servers; you still need a provider.
Can I use WireGuard with the Windows built-in client?
No. For WireGuard, use your provider's app or the official WireGuard app with a configuration file from your provider.
Does Windows 11 have a VPN kill switch?
Not for consumer VPN connections. Use the kill switch in your provider's app.
Sources and official documentation
If your screen differs from our description, the official documentation takes precedence.
- Connect to a VPN in Windows Microsoft Support
- WireGuard installation WireGuard
Ready to protect your connection?
Follow our step-by-step guide to choose a trustworthy provider, set up your device and confirm that your VPN is working.
GET VPN