Skip to content Skip to content

How to Set Up a VPN on Windows 11 and 10: Step-by-Step Guide [2026]

There are two ways to use a VPN on a Windows PC: with your VPN provider’s app, or manually with the VPN client built into Windows. The app is easier and offers more features; the manual setup is useful for work or university VPNs and for providers without a Windows app. This guide covers both for Windows 11 and Windows 10, plus how to check that the connection works.

Note: Microsoft ended support for Windows 10 in October 2025, so it no longer receives regular security updates. If your PC can run Windows 11, upgrading is the more important security step; a VPN does not close holes in an outdated operating system.

Method 1: Set up a VPN with the provider’s app (recommended)

Almost every commercial VPN offers a Windows app. It configures the connection automatically, uses modern protocols such as WireGuard and adds features the Windows client lacks, such as a kill switch and leak protection.

  1. Choose a VPN provider and create an account. Look for an independently audited no-logs policy and a kill switch.
  2. Download the Windows app only from the provider’s official website or the Microsoft Store.
  3. Run the installer and allow the app to make changes when Windows asks.
  4. Sign in with your account details.
  5. Click “Connect” (often called Quick Connect) or choose a server location.
  6. In the app settings, turn on the kill switch and, if you like, automatic connection when Windows starts or on untrusted Wi-Fi networks.

Providers with Windows apps include TotalVPN, Surfshark and NordVPN. For a comparison of features, see our guide to the best VPNs for Windows.

Method 2: Set up a VPN manually in Windows

The built-in Windows client connects to VPN servers using IKEv2, SSTP, L2TP/IPsec or PPTP. You need the server address and login details from your provider or IT department. Note that the Windows client does not support WireGuard or OpenVPN, the protocols most commercial VPNs prefer, and has no kill switch.

Windows 11

  1. Open Settings (Windows key + I) › Network & internet › VPN.
  2. Click “Add VPN”.
  3. Under VPN provider, select “Windows (built-in)”.
  4. Enter a connection name of your choice and the server name or address from your provider.
  5. Choose the VPN type your provider specifies, ideally IKEv2.
  6. Select the type of sign-in info (for example username and password, or a certificate) and enter your details.
  7. Click “Save”. The connection now appears in the list; click “Connect”.

After that you can switch the VPN on and off quickly via the network icon in the taskbar (Quick Settings).

Windows 10

  1. Open Settings › Network & Internet › VPN.
  2. Click “Add a VPN connection”.
  3. Select “Windows (built-in)” as the provider, then enter the connection name, server address, VPN type and sign-in info.
  4. Click “Save”, select the new connection and click “Connect”.

Which VPN type? Prefer IKEv2, or SSTP if your provider recommends it. Avoid PPTP: its encryption is considered broken. L2TP/IPsec is acceptable but outdated, and Microsoft has announced that PPTP and L2TP are deprecated.

Method 3: WireGuard or OpenVPN with configuration files

If you want to use WireGuard or OpenVPN without the provider’s app, for example on a work PC where you cannot install it, many providers offer configuration files in their account area.

  1. Install the official client: WireGuard for Windows (from wireguard.com) or OpenVPN Connect (from openvpn.net).
  2. Download the configuration file for the server you want from your provider’s account area. For OpenVPN you usually also need separate service credentials, which the provider shows there.
  3. Import the file into the client (in WireGuard via “Import tunnel(s) from file”; in OpenVPN Connect via “Upload file”).
  4. Click “Activate” or “Connect”.

This method also has no kill switch unless you configure one; WireGuard offers a “Block untunneled traffic” option for this.

Check that the VPN works

  1. Before connecting, note your IP address and location on an IP check website.
  2. Connect the VPN and reload the page. It should now show the VPN server’s IP address and location.
  3. Run a DNS leak test. The DNS servers shown should belong to the VPN provider, not to your internet provider.

Troubleshooting

  • No connection: check the server address and login details, try another server or protocol, and make sure no other VPN app is running at the same time.
  • Firewall or antivirus blocks the connection: allow the VPN app in its settings.
  • No internet after connecting: restart the VPN app, change the protocol or reinstall the network adapter via the app’s repair or reset option.
  • Printer or NAS no longer reachable: allow access to the local network in the VPN app or use split tunneling.

Conclusion

For most people, the provider’s app is the best way to use a VPN on Windows: it takes a few minutes, uses modern protocols and includes a kill switch. The built-in Windows client is mainly useful for work or university connections via IKEv2 or SSTP. Whichever method you choose, check the result once with an IP and DNS leak test.

Frequently asked questions

Does Windows 11 have a built-in VPN?

Windows 11 has a built-in VPN client, but no VPN service. You can use it to connect to a server via IKEv2, SSTP or L2TP/IPsec if you have the details from a provider or your employer. For a commercial VPN, the provider’s app is usually the better choice.

Is a VPN on Windows free?
Why is the VPN not connecting on Windows?