How to Set Up a VPN on Any Device (Step-by-Step Guide 2026)
Affiliate disclosure: This article contains affiliate links. If you click a link and make a purchase, we may earn a commission at no extra cost to you. Our editorial recommendations are never influenced by commissions — read our full disclosure policy.
Before You Start: Choosing a VPN
If you have not chosen a VPN yet, we recommend NordVPN for the best overall protection or Surfshark for the best value (especially families, thanks to unlimited device connections). Both are easy to set up on every platform covered in this guide.
For a detailed comparison of the top VPNs, read our best VPNs 2026 guide. If you want a head-to-head comparison, check our NordVPN vs ExpressVPN vs Surfshark breakdown.
This tutorial uses NordVPN and Surfshark as examples, but the steps are similar for any VPN provider.
How to Set Up a VPN on Windows
Step 1: Create Your VPN Account
Go to your chosen VPN provider's website (nordvpn.com or surfshark.com) and create an account. Choose your subscription plan — the 2-year plans offer the best value. Complete the payment process.
Surfshark VPN
Military-grade encryption. No-logs policy. From $2.49/month.
Get Surfshark →
Sponsored · We may earn a commission
Step 2: Download the Windows App
After creating your account, you will be directed to a download page. Download the Windows installer. If you are not redirected, look for a "Download" or "Apps" section on the provider's website.
Step 3: Install the App
Run the downloaded installer. On Windows 11, you may see a SmartScreen prompt — click "More info" and then "Run anyway." The installer will ask for administrator permissions. Click "Yes" to proceed.
The installation typically takes 30 to 60 seconds. The app may need to install a virtual network adapter — this is normal and required for the VPN to function.
Step 4: Log In
Open the VPN app and log in with the account credentials you created in Step 1. Some VPNs use email and password; others use a login link sent to your email.
NordVPN
Fastest VPN we tested. 6,400+ servers in 111 countries.
Try NordVPN →
Sponsored · We may earn a commission
Step 5: Connect
Click the "Quick Connect" button. The app will automatically choose the fastest available server based on your location. You are now protected.
Step 6: Verify Your Connection
Visit ipleak.net in your browser. You should see the VPN server's IP address and location, not your real ones. If you see your real IP, disconnect and reconnect, or try a different server.
Step 7: Configure Settings (Recommended)
Open the app's settings and configure:
- Kill switch: Enable this. It blocks internet traffic if the VPN connection drops, preventing accidental exposure.
- Auto-connect: Enable this if you want the VPN to connect automatically when your computer starts.
- Protocol: WireGuard (NordLynx on NordVPN) is the fastest option. Use OpenVPN as a fallback if WireGuard has issues.
- DNS leak protection: Enable this. It ensures DNS requests go through the VPN tunnel.
How to Set Up a VPN on Mac
Step 1: Create Your VPN Account
Same as Windows — visit your VPN provider's website and create an account with a subscription plan.
Step 2: Download the Mac App
Download the macOS app from your VPN provider's website or the Mac App Store. The Mac App Store version may have slightly fewer features due to Apple's sandboxing requirements. We recommend downloading from the provider's website for full functionality.
Step 3: Install the App
Open the downloaded .dmg file and drag the VPN app to your Applications folder. On first launch, macOS will ask you to approve a VPN configuration — click "Allow." You will also need to enter your Mac password.
Step 4: Log In and Connect
Open the app from Applications, log in with your credentials, and click "Quick Connect." The process is identical to Windows from this point.
Step 5: Configure Settings
In the app's preferences:
- Kill switch: Enable it
- Auto-connect on startup: Enable if desired
- Protocol: WireGuard for best performance
- Allow LAN access: Enable this if you want to access local devices (printers, NAS drives) while connected to the VPN
Step 6: Verify
Visit ipleak.net to confirm your real IP is hidden.
How to Set Up a VPN on iPhone
Step 1: Download the App
Open the App Store and search for your VPN provider (NordVPN or Surfshark). Download the app.
Step 2: Open and Log In
Open the app and log in with your account credentials. If you do not have an account yet, you can create one in the app, but subscription pricing may be higher through Apple's in-app purchase. We recommend creating your account on the provider's website first.
Step 3: Allow VPN Configuration
When you first connect, iOS will ask: "NordVPN Would Like to Add VPN Configurations." Tap "Allow." You may need to authenticate with Face ID, Touch ID, or your passcode.
Step 4: Connect
Tap the "Quick Connect" button. Your iPhone will show a VPN icon in the status bar when connected.
Step 5: Configure Settings
In the app's settings:
- Auto-connect on Wi-Fi: Enable this to automatically connect whenever you join a Wi-Fi network. This is especially important on public Wi-Fi.
- Protocol: WireGuard (or NordLynx) is recommended
- Kill switch: Enable it. On iOS, this works by blocking traffic when the VPN disconnects.
Step 6: Enable Always-On VPN (Optional)
For maximum protection, go to iPhone Settings, then General, then VPN & Device Management. Tap on your VPN configuration and enable "Connect On Demand." This ensures your iPhone is always protected.
How to Set Up a VPN on Android
Step 1: Download the App
Open the Google Play Store and search for your VPN provider. Download and install the app.
Step 2: Log In
Open the app and log in with your credentials. Same note as iPhone — create your account on the provider's website first for better pricing.
Step 3: Allow VPN Configuration
When you first connect, Android will display a connection request. Tap "OK" to allow the VPN to create a connection.
Step 4: Connect
Tap "Quick Connect." A key icon will appear in your notification bar indicating the VPN is active.
Step 5: Configure Settings
- Auto-connect: Enable to connect automatically on specific networks or all networks
- Kill switch: On Android, you can use the app's built-in kill switch or the system-level "Always-on VPN" setting
- Protocol: WireGuard for best performance
Step 6: Enable Always-On VPN (Recommended)
Go to Android Settings, then Network & Internet, then VPN. Tap the gear icon next to your VPN. Enable both "Always-on VPN" and "Block connections without VPN." This is the most secure configuration — your phone will never connect to the internet without VPN protection.
How to Set Up a VPN on Your Router
Setting up a VPN on your router protects every device on your network — smart TVs, game consoles, IoT devices, and guest devices that cannot install VPN apps.
Important Notes Before You Start
- Not all routers support VPN client configurations. Check your router's documentation.
- Router VPN will be slower than app-based VPN because consumer routers have less processing power.
- OpenVPN is the most widely supported protocol on routers. WireGuard router support is growing but not universal.
- If your router does not support VPN, consider a VPN-compatible router from Asus, Linksys, or GL.iNet. Alternatively, flash your router with DD-WRT or OpenWrt firmware (advanced users only).
Step 1: Log In to Your Router
Open a browser and go to your router's admin page. Common addresses are 192.168.0.1 or 192.168.1.1. Log in with your router admin credentials (not your Wi-Fi password — these are different).
Step 2: Find VPN Settings
Navigate to the VPN section. This is typically under Advanced Settings, then VPN, or VPN Client. The exact location varies by router brand.
Step 3: Get Configuration Files
Log in to your VPN provider's website and look for "Router Setup" or "Manual Configuration." Download the OpenVPN configuration files for your preferred server locations.
Step 4: Upload Configuration
In your router's VPN settings, upload the configuration file. Enter your VPN username and password when prompted. Some routers have a field for custom DNS — set this to your VPN provider's DNS servers if available.
Step 5: Connect and Verify
Enable the VPN connection on your router. Wait 30 to 60 seconds for the connection to establish. Verify by visiting ipleak.net on any device connected to the router.
Step 6: Configure Split Tunneling (If Available)
Some routers allow you to choose which devices route through the VPN and which connect directly. This is useful if you want VPN protection on most devices but need direct connections for smart home devices or gaming.
Troubleshooting Common VPN Issues
VPN is connected but websites are not loading
- Try a different server location
- Switch protocols (WireGuard to OpenVPN or vice versa)
- Disable IPv6 in your system network settings
- Flush your DNS cache: on Windows, open Command Prompt and run ipconfig /flushdns
VPN is slow
- Connect to a server closer to your physical location
- Use WireGuard instead of OpenVPN
- Check your base internet speed without VPN — the issue may be your ISP
- Try a different server in the same location
VPN keeps disconnecting
- Enable the kill switch to prevent exposure during disconnections
- Try a different protocol
- Check your firewall settings — some firewalls block VPN traffic
- Update the VPN app to the latest version
Cannot access local network while VPN is connected
- Enable "LAN access" or "Local network access" in VPN settings
- On routers, configure split tunneling to exclude local traffic
Frequently Asked Questions
Do I need a VPN on my phone?
Yes. Your phone connects to more untrusted networks than your computer — coffee shop Wi-Fi, hotel networks, airport hotspots. A VPN protects all traffic from your phone, including app data that may not use HTTPS.
Will a VPN slow down my internet?
Slightly. Modern VPNs with WireGuard typically reduce speeds by 5 to 15%. For browsing, streaming, and video calls, this is unnoticeable. For competitive online gaming, you may notice increased latency.
Should I keep my VPN on all the time?
For maximum privacy, yes. At minimum, always use your VPN on public Wi-Fi and when accessing sensitive accounts. The "always-on" settings described above make this effortless.
Can I use a free VPN instead?
We strongly advise against free VPNs. They typically monetize your browsing data, inject ads, or have severe bandwidth limitations. A credible VPN costs less than $3/month on a 2-year plan. Your privacy is worth that.
How do I know if my VPN is working?
Visit ipleak.net while connected. You should see the VPN server's IP address and location, not your real ones. Also check for DNS leaks — your DNS server should show as your VPN provider's server, not your ISP's.
The Bottom Line
Setting up a VPN takes five minutes on any device. There is no technical expertise required — modern VPN apps handle the complex configuration automatically. The hardest part is choosing a provider, and we have already done that research for you.
Install the app, enable the kill switch, turn on auto-connect, and forget about it. Your traffic is protected from that point forward.
For detailed VPN recommendations, read our best VPNs 2026 guide.
Written by Thomas — NorwegianSpark SA. We test everything we recommend. Affiliate links are disclosed.
Reviewed by Thomas — NorwegianSpark · Last updated: 24 April 2026