How to set up a VPN, step by step
Follow these five steps in order. Each step tells you exactly what to do and what you should see when it has worked.
5 steps to set up a VPN on any device
New to VPNs? Read what a VPN is and how it works first; it takes about five minutes.
Choose a trustworthy VPN provider
Your VPN provider can see your traffic metadata, so pick carefully. Look for an independently audited no-logs policy, modern protocols (WireGuard or OpenVPN), a kill switch, DNS leak protection and apps for all of your devices.
Get the official app for your device
Use only your device's official app store or the provider's official account page. Avoid look-alike apps and unofficial mirrors. Detailed steps are in the device instructions below.
Sign in and connect
Open the app, sign in, and choose Quick connect or a server in a nearby location for the best speed. You should see a status such as “Connected” or “Protected”.
Verify that the VPN is working
- IP check: note your IP address shown in your provider's app or account dashboard before and after connecting. It should change to the VPN server's address.
- DNS leak check: use the leak test built into most reputable VPN apps; the DNS servers listed should belong to your VPN provider, not your ISP.
- Location check: websites that show local content should now reflect the VPN server's region.
Full guide: how to check your VPN for IP, DNS, WebRTC and IPv6 leaks
Turn on the key safety settings
- Kill switch: blocks internet access if the VPN drops.
- Auto-connect: connects automatically on untrusted Wi-Fi networks.
- Launch at startup: starts the app when your device turns on.
- Protocol: leave it on “Automatic” or choose WireGuard or OpenVPN. See the VPN protocol comparison.
VPN setup instructions for your device
Select your device to see the exact steps. Menu names reflect current operating system versions and may differ slightly on older versions.
Get the provider's app
Open the Microsoft Store or your provider's official account page, find the official app and add it to your PC. Check that the publisher name matches your provider.
Sign in
Open the app and sign in with the account you created with your provider.
Allow the VPN configuration
Windows may ask for permission to add a network adapter. Choose Yes; this is how the tunnel is created.
Connect
Choose Quick connect or a nearby server and press Connect. The app should show a connected status.
Alternative: built-in VPN client
If your provider gives you IKEv2 or L2TP details, open Settings → Network & internet → VPN → Add VPN, enter the server address and sign-in details, save, then select Connect.
Get the provider's app
Open the App Store, search for your provider's official app and add it to your Mac.
Sign in and allow VPN configurations
Open the app, sign in, and click Allow when macOS asks to add VPN configurations. You may need to enter your Mac password.
Connect
Select a nearby server and click Connect. A VPN status icon can appear in the menu bar.
Alternative: built-in VPN client
For IKEv2 or L2TP details, open System Settings → VPN → Add VPN Configuration, choose the type, enter the details from your provider, then turn the VPN switch on.
Get the provider's app
Open Google Play, search for your provider's official app, check the developer name and tap to add it.
Sign in and approve the connection request
Open the app and sign in. Android shows a Connection request prompt the first time; tap OK.
Connect
Tap Connect. A key icon in the status bar shows the VPN is active.
Turn on Always-on VPN (recommended)
Go to Settings → Network & internet → VPN, tap the gear next to your VPN and enable Always-on VPN and Block connections without VPN. Menu names can vary slightly by manufacturer.
Get the provider's app
Open the App Store, search for your provider's official app and tap Get.
Sign in and allow VPN configurations
Open the app, sign in and tap Allow when iOS asks to add VPN configurations. Confirm with Face ID, Touch ID or your passcode.
Connect
Tap Connect. A VPN badge appears in the status bar or Control Center.
Check the setting
You can see and switch VPN configurations in Settings → General → VPN & Device Management → VPN.
Use your provider's Linux app or a configuration file
Many providers offer a Linux app or command-line client. Otherwise, sign in to your provider's account area and generate a WireGuard (.conf) or OpenVPN (.ovpn) file.
Import the file
On GNOME desktops, open Settings → Network, click + next to VPN and choose Import from file.
Connect
Turn the new VPN connection on. A VPN icon appears in the top bar.
Advanced: only follow these steps if your router supports VPN client mode and you are comfortable with its admin settings.
Check compatibility
Look in your router manual or admin panel for a VPN client section that supports WireGuard or OpenVPN.
Get a configuration file
In your VPN provider's account area, generate a WireGuard or OpenVPN configuration for router use.
Add the configuration
Sign in to the router admin page, open the VPN client section, add the configuration and save.
Connect and verify
Enable the VPN client, then follow Step 4 above from any device on your home network.
What a correctly connected VPN looks like
Most VPN apps follow a similar layout. When everything is working, your phone or computer should show a clear protected status similar to this example.
Look for these signs
- A “Connected” or “Protected” status in the app
- A new IP address belonging to the VPN server
- A VPN icon or key symbol in your system status bar
- Kill switch shown as active in settings
Your VPN connection checklist
Tick each item as you complete it. Progress is saved on this device only if you allow preference storage.
Fixing common VPN problems
| Problem | Try this, in order |
|---|---|
| The app will not connect | 1. Check that your internet works without the VPN. 2. Try a different server. 3. Switch protocol (for example from WireGuard to OpenVPN TCP). 4. Restart the app and your device. |
| Internet is slow | 1. Pick a server closer to you. 2. Use WireGuard. 3. Test at a different time of day. 4. Use a wired connection if possible. |
| A website blocks you | 1. Try another server in the same region. 2. Temporarily disconnect for trusted sites such as your bank, if their security rules require it. |
| VPN disconnects often | 1. Turn on the kill switch so nothing leaks. 2. Use IKEv2 or WireGuard on mobile, which reconnect quickly. 3. Disable battery optimization for the VPN app on Android. |
| DNS leak test shows your ISP | 1. Enable “DNS leak protection” in the app. 2. Turn off custom DNS settings on your device or browser. 3. Reconnect and test again. |
Still stuck? Check the VPN FAQ for answers about speed, battery life and multiple devices.