How to Set Up a VPN on Your Windows Computer
You want to set up a VPN (Virtual Private Network) on your Windows computer to encrypt your internet traffic, protect your privacy on public Wi-Fi, access your workplace network remotely, or connect to resources that require a VPN. Windows has built-in VPN support that works with most VPN protocols, and most commercial VPN providers also offer dedicated apps that simplify the setup process.
Understand VPN types
- There are two common reasons to set up a VPN: using a commercial VPN service for privacy and security, or connecting to a workplace or school VPN for remote access. The setup process differs because commercial VPN services provide their own apps while workplace VPNs typically require manual configuration
- Commercial VPN services encrypt your internet traffic and route it through servers in different locations. This prevents your internet provider from seeing what websites you visit and protects your data on public Wi-Fi networks. These services usually provide a dedicated Windows app that handles all configuration
- Workplace VPNs connect your computer to your employer network as if you were physically in the office. This gives you access to internal resources like file servers, printers, and internal websites. Your IT department provides the connection details needed for setup
Set up a commercial VPN using its app
- Most commercial VPN providers offer a Windows application that automates the entire setup. Download the app from the VPN provider official website (not from third-party download sites). Install it and sign in with your account credentials
- The app typically includes a one-click connect button, a server list organized by country or purpose (streaming, privacy, speed), and settings for the VPN protocol (WireGuard, OpenVPN, IKEv2). For most users, leaving the protocol on automatic or selecting WireGuard provides the fastest speeds
- Enable the kill switch feature if available. The kill switch blocks all internet traffic if the VPN connection drops unexpectedly, preventing unencrypted data from leaking. Also enable auto-connect on startup if you want the VPN running whenever your computer is on
Set up a VPN using Windows built-in settings
- Windows can connect to VPNs without third-party software using built-in protocols (IKEv2, L2TP/IPsec, PPTP, SSTP). Open Settings, Network and Internet, VPN, and click Add VPN. Select Windows (built-in) as the VPN provider
- Enter the connection details: Connection Name (any descriptive name you choose), Server Name or Address (the VPN server hostname or IP address provided by your VPN service or IT department), VPN Type (the protocol — select the one specified by your provider), and Sign-in Info (your username, password, or certificate)
- For IKEv2 connections, you may need to install a certificate. Your VPN provider or IT department provides the certificate file. Double-click the certificate file and install it to the Local Machine certificate store under Trusted Root Certification Authorities
Connect to a workplace VPN
- Your IT department provides the VPN connection information: the server address, the VPN type (protocol), and your authentication credentials. Common workplace VPN solutions include Cisco AnyConnect, Palo Alto GlobalProtect, Fortinet FortiClient, and Microsoft Always On VPN
- If your workplace uses Cisco AnyConnect, GlobalProtect, or FortiClient, download the client software from the link your IT department provides or from the company intranet. These dedicated clients handle connection, authentication (including multi-factor authentication), and certificate management automatically
- If your workplace uses a standard VPN protocol, configure it through Windows built-in settings as described above. For L2TP/IPsec connections, you may need to set a pre-shared key — click Advanced Settings in the VPN connection properties and enter the key provided by IT
Configure VPN protocols
- WireGuard is the newest and fastest protocol. It offers excellent speeds and strong encryption with minimal overhead. If your VPN provider supports WireGuard, it is usually the best choice for general use. Most commercial VPN apps include WireGuard support
- IKEv2 is fast, stable, and handles network changes well (switching between Wi-Fi and cellular does not drop the connection). It is built into Windows and works without additional software. IKEv2 is a good choice for laptops that switch networks frequently
- OpenVPN is widely supported and highly configurable. It is available in two variants: UDP (faster, used for streaming and general browsing) and TCP (more reliable on restrictive networks). OpenVPN requires either the VPN provider app or the standalone OpenVPN client
- L2TP/IPsec is older and slower but compatible with nearly all VPN servers. It is built into Windows and does not require additional software. Use it when other protocols are not supported by the VPN server. PPTP is outdated and insecure — avoid it unless there is no alternative
Configure split tunneling
- Split tunneling lets you choose which traffic goes through the VPN and which uses your regular internet connection. This is useful when you need VPN access to specific resources but want full-speed direct access for everything else
- In the Windows built-in VPN, enable split tunneling by opening the VPN connection properties, clicking Advanced Options, and unchecking Use Default Gateway on Remote Network under IP settings. This sends only traffic destined for the VPN network through the VPN
- Most commercial VPN apps include a split tunneling option in their settings. You can typically specify apps or websites that should bypass the VPN, or specify only certain apps that should use the VPN while everything else connects directly
Troubleshoot VPN connection problems
- If the VPN fails to connect, verify the server address and credentials are correct. A single typo in the server address prevents connection. Copy and paste the server address from the source provided by your VPN service or IT department
- Firewall or antivirus software may block VPN connections. Temporarily disable your firewall and try connecting. If it works, add an exception for the VPN protocol ports: IKEv2 uses UDP ports 500 and 4500, OpenVPN typically uses UDP port 1194 or TCP port 443, L2TP uses UDP ports 500, 1701, and 4500
- Some public Wi-Fi networks (hotels, airports, coffee shops) block VPN traffic. If you cannot connect on public Wi-Fi, try switching to a TCP-based protocol (OpenVPN TCP or SSTP) on port 443, which uses the same port as HTTPS web traffic and is rarely blocked
- If the VPN connects but you cannot access websites or network resources, check your DNS settings. Some VPNs use their own DNS servers. If DNS is misconfigured, the VPN tunnel works but name resolution fails. Try setting your DNS manually to a public resolver and see if that resolves the issue
Secure your VPN configuration
- Always connect to VPN before accessing sensitive information on public networks. Set the VPN to auto-connect when your computer detects a public Wi-Fi network. Many VPN apps have a trusted networks feature that auto-connects on untrusted networks and disconnects on your home network
- Keep the VPN client updated. VPN vulnerabilities are discovered and patched regularly. Outdated clients may have security flaws that defeat the purpose of using a VPN. Enable automatic updates for your VPN app
- Do not save VPN credentials on shared computers. Uncheck any remember password option when connecting from a computer others have access to. Saved credentials allow anyone who uses the computer to connect to the VPN with your account
Need help setting up a VPN?
If you need help configuring a VPN on your Windows computer, LuxuriousComputers Repair can set up VPN connections, configure protocols, troubleshoot connection issues, and ensure your VPN is properly securing your internet traffic.
Related Articles
More Articles
Browse our full library of guides and tutorials.