sodcalculator

10 Tech How-To

VPN in Windows: Setup and Use Guide

Guide 10-55584 · Updated · Step by step

Setting up a VPN in Windows lets you connect to a private network securely over the internet, and you can do it in a few minutes using the built-in settings or a third-party app. This guide covers both the manual configuration method and the use of VPN apps, plus how to connect, disconnect, and troubleshoot common issues. Whether you want to access work resources or protect your browsing on public Wi-Fi, Windows has the tools you need.

What a VPN Does in Windows

A VPN (Virtual Private Network) creates an encrypted tunnel between your Windows PC and a VPN server. All your internet traffic travels through this tunnel, so your IP address appears to be that of the server, not your own. This hides your online activity from your internet service provider (ISP) and anyone else on your local network. In a corporate setting, a VPN lets you access internal servers and files as if you were physically in the office.

Windows supports two main VPN types: built-in (using the native client) and third-party apps. The built-in client works with many VPN protocols, including IKEv2, SSTP, and L2TP/IPsec. Third-party apps, like those from commercial VPN providers, often use OpenVPN or WireGuard and offer a more user-friendly interface with features like a kill switch and split tunneling.

How to Set Up a VPN in Windows (Built-in Method)

Before you begin, you need the VPN server address and your login credentials. If you’re connecting to a workplace VPN, your IT department provides these. For a personal VPN, you might use a service that gives you a server address.

  1. Open Settings (Windows key + I) and go to Network & Internet.
  2. Select VPN from the left sidebar.
  3. Click Add a VPN connection.
  4. In the VPN provider drop-down, choose Windows (built-in).
  5. Enter a Connection name (e.g., “Work VPN”).
  6. Enter the Server name or address (e.g., vpn.example.com or an IP address).
  7. Choose a VPN type from the drop-down. Common options are IKEv2, SSTP, and L2TP/IPsec. If you’re not sure, ask your VPN provider or IT admin.
  8. Enter your User name and Password (optional if you want to be prompted each time).
  9. Check Remember my sign-in info if you want Windows to store the credentials.
  10. Click Save.

Once added, you can connect by clicking the network icon in the system tray, selecting the VPN connection, and clicking Connect. You may be prompted for your password if you didn’t save it.

How to Set Up a VPN Using a Third-Party App

Many commercial VPN services provide their own Windows app. These apps simplify the process: you download, install, log in, and click a big connect button. They often offer a choice of server locations and protocols.

  1. Download the app from the VPN provider’s official website (not from third-party sites to avoid malware).
  2. Run the installer and follow the on-screen instructions. You may need to allow the app to make changes to your device.
  3. Open the app and sign in with the account you created with the service.
  4. Choose a server location (often a country or city) or let the app pick the fastest one.
  5. Click the connect button. The app will typically show a status indicator when you’re connected.

These apps often add a virtual network adapter to Windows. You can see it in Network Connections, but you don’t need to manage it manually.

How to Connect and Disconnect

Once your VPN is configured, connecting and disconnecting is straightforward.

  • Connect via Settings: Go to Settings > Network & Internet > VPN, click the connection name, and select Connect.
  • Connect via System Tray: Click the network icon in the bottom-right corner, then click the VPN connection name and select Connect.
  • Disconnect: Repeat the same steps and click Disconnect.

For third-party apps, the connect/disconnect is usually a single large button. Some apps also allow you to set the VPN to auto-connect when you join an untrusted network.

Choosing the Right VPN Protocol

The protocol determines how your data is encrypted and transmitted. Windows built-in client supports several, and your choice affects speed and security.

  • IKEv2: Fast and stable, especially for mobile users who switch networks. It’s a good default if your server supports it.
  • SSTP: Uses SSL/TLS, which often works through firewalls and proxies. It’s a solid choice for Windows, but it’s proprietary to Microsoft.
  • L2TP/IPsec: Older, but widely supported. It’s slower due to double encapsulation and may be blocked by some firewalls.
  • OpenVPN: Open-source and highly secure, but not natively supported by Windows built-in client. You need a third-party app or a manual configuration.
  • WireGuard: Newer, very fast, and simpler. Most modern third-party apps use it.

If you’re using a corporate VPN, your IT department will specify the protocol. For personal use, the VPN app’s default is usually the best choice.

Common Problems and How to Fix Them

VPN connections can fail for various reasons. Here are some common issues and their fixes.

  • Cannot connect to the VPN: Check your internet connection first. Then verify the server address and your credentials. If using a firewall, ensure it’s not blocking the VPN port (often UDP 500, UDP 4500, or TCP 443).
  • VPN connects but no internet access: This often happens when the VPN doesn’t route all traffic. In the VPN settings, click Advanced options and check if Use default gateway on remote network is enabled. If not, try toggling it.
  • Error 809 or 720: These are common Windows VPN errors. 809 often means the server is unreachable or the protocol is blocked. 720 indicates a network adapter issue; restarting your PC or resetting the network adapter may help.
  • Slow speeds: VPN encryption adds overhead. Try a different server location closer to you, or switch to a faster protocol like WireGuard if available.
  • VPN disconnects frequently: This can be due to network instability or a timeout setting. Check your power settings to ensure the network adapter isn’t being turned off to save power.

Security and Privacy Considerations

While a VPN protects your data in transit, it’s not a silver bullet. Here are key points to keep in mind.

  • Trust your VPN provider: If you use a commercial VPN, the provider can see your traffic. Choose a reputable one with a clear no-logs policy.
  • VPN doesn’t protect against malware: It encrypts your connection but doesn’t stop malicious downloads or phishing sites.
  • Kill switch: Some VPN apps have a kill switch that blocks internet traffic if the VPN drops, preventing data leaks. Enable it if available.
  • DNS leaks: Ensure your VPN uses its own DNS servers to avoid leaks. You can test for leaks using online tools.
  • Public Wi-Fi: A VPN is especially useful on public Wi-Fi, but it doesn’t replace good security practices like using strong passwords and keeping your system updated.

Frequently Asked Questions

Do I need a VPN on Windows?
Not always. If you’re at home on a trusted network, a VPN is optional. It’s more important when using public Wi-Fi or if you want to hide your browsing from your ISP. For remote work, it’s often required to access company resources.

Can I use a free VPN on Windows?
Yes, but be cautious. Free VPNs often have data limits, slower speeds, and may sell your data. Some reputable providers offer limited free tiers, but for sensitive activities, a paid service is safer.

How do I remove a VPN from Windows?
Go to Settings > Network & Internet > VPN, click the connection, and select Remove. For third-party apps, uninstall them from Settings > Apps or via the Control Panel.

Why is my VPN not working after a Windows update?
Windows updates can change network settings or break compatibility. Try restarting your PC, then check if the VPN service is running. You may need to update your VPN app or reconfigure the built-in connection.

Can I use VPN and Remote Desktop at the same time?
Yes. In fact, many people connect to a VPN first, then use Remote Desktop to access a work computer. The VPN ensures the connection is secure.

What is split tunneling?
Split tunneling lets you choose which apps or websites use the VPN and which use your direct internet connection. This can improve speed and let you access local devices while connected. It’s available in many third-party VPN apps.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →