A shield with Surfshark’s logo on it. A TV, laptop, tablet, smartphone, router, and joystick are connected to the shield.

A VPN (Virtual Private Network) is a service that encrypts your internet connection and hides your online activity from hackers, ISPs, and other third parties.

Setting up a VPN involves installing an app on your device or manually configuring your network settings to route traffic through secure VPN servers. While the process might seem technical, this guide will explain it to you in minutes.

Table of contents

    Quick overview: app vs. manual setup

    Here’s how the two primary VPN setup methods compare:

    VPN app
    Manual setup
    Time
    2-5 minutes
    10-15 minutes
    Technical skills
    None required
    Basic networking
    Best for
    Most users, beginners
    Advanced users, specific protocols

    Method 1: VPN app setup (recommended)

    The easiest and most secure way to set up a VPN is by using a dedicated app from a reputable provider like Surfshark. Doing so allows for:

    • Automatic security feature configuration;
    • Easy server switching and protocol selection;
    • Built-in kill switch and leak protection;
    • Customer support integration;
    • Regular security updates.

    Step 1: Choose and subscribe to a VPN service

    Step 2: Download and install the VPN app

    • Download a VPN app from the official website or an authorized app store;
    • Surfshark has dedicated apps for Windows, macOS, iOS, Android, and other major platforms;
    • Typical installation time is under 2 minutes; no technical skills required.

    Step 3: Launch the app and log in to your account

    • Open the installed VPN app;
    • Log in using your account credentials;
    • Surfshark offers several login methods, including using your email and password, a code from another device, or your Google or Apple account;
    • For additional security, enable two-factor authentication.

    Step 4: Connect to a VPN server

    • VPN connections are typically established within seconds;
    • If you’re using Surfshark, use the quick connect feature to select the fastest available server;
    • Alternatively, you can manually choose from Surfshark’s 3,200+ servers in 100 countries.

    Method 2: Manual VPN setup

    Manual setup gives you more control over your VPN configuration. It’s also useful when no  VPN apps are available for your device.

    Before you begin:

    1. Get a VPN service subscription (you still need one, even for manual setup).
    2. Get VPN server details from your provider (server address, credentials, protocol type).
    3. Make sure you can access your device’s network settings.
    4. For advanced setup advice, consult our dedicated guides:
      1. For Windows: WireGuard and OpenVPN
      2. For macOS: WireGuard, OpenVPN, and IKEv2;
      3. For iOS: WireGuard, OpenVPN, and IKEv2;
      4. For Android: WireGuard, OpenVPN, and IKEv2.

    Windows manual setup

    Most VPN services provide a Windows VPN app, but here’s how to manually set up a VPN on a PC if you prefer to handle things yourself:

    1. Open SettingsNetwork & internetVPN.
    A screenshot showing the Network & internet settings page on a Windows operating system, with the VPN option highlighted.
    1. Click Add VPN.
    2. Fill in:
    A screenshot of the Add a VPN connection tab in Windows settings, showing input fields and a highlighted Save button.
      1. VPN provider: choose Windows (built-in);
      2. Connection name: any name you want this connection to appear as;
      3. Server name or address: the information you got from your VPN provider;
      4. Type of sign-in info: choose User name and password;
      5. Sign-in info: the username and password you registered with on your VPN provider’s website.
    1. Select Save.
    2. Go back to the VPN list and click Connect.

    macOS manual setup

    If your VPN provider doesn’t offer a dedicated Mac app, follow these steps:

    1. Open System Settings from the Apple menu.
    A screenshot of the VPN settings page on a macOS system, showing a list of connections and the sidebar with VPN highlighted.
    1. Select VPN from the sidebar and click Add VPN Configuration.
    A screenshot showing the macOS VPN settings page with the Add VPN Configuration dropdown menu open.
    1. Choose your VPN type.
    2. Enter:
    A screenshot of the macOS configuration settings for L2TP over IPSec, with fields such as Display name and Password.
      1. Server address: the information you got from your VPN provider;
      2. Sign-in info: the username and password you registered with on your VPN provider’s website;
      3. Shared secret (if required).
    1. Click Create, then toggle the VPN to connect.

    iOS manual setup

    You can typically get a VPN for your iPhone as an app, but in case you prefer a hands-on approach:

    1. Open SettingsGeneralVPN & Device Management.
    A screenshot of the General settings page on an iPhone, with the VPN & Device Management option highlighted.
    1. Tap VPNAdd VPN Configuration.
    A screenshot of the iPhone VPN settings tab, with WireGuard listed as active and Add VPN Configuration highlighted in red.
    1. Choose the VPN type.
    A screenshot of the iPhone Add Configuration menu, with sections dedicated to Authentication and Proxy settings.
    1. Fill in:
      1. Type: the name of the protocol you’re installing (WireGuard, OpenVPN, and IKEv2);
      2. Description: any name you want this connection to appear as;
      3. Server address: the information you got from your VPN provider;
      4. Remote ID (often the same as server);
      5. Sign-in info: the username and password you registered with on your VPN provider’s website.
    2. Tap Done, then toggle the VPN switch to connect.

    Android manual setup

    You can easily set up a VPN on an Android with an app, but if you’re looking to do it manually, here’s how:

    1. Open SettingsConnectionsMore Connection SettingsVPN.
    A screenshot of the Connections tab in Android Settings, with the More connection settings option highlighted in red.
    1. Tap Add VPN Profile.
    A screenshot of the Android VPN tab under More connection settings, with the Add VPN profile option highlighted in red.
    1. Fill in:
    A screenshot of the Edit VPN network page of Android settings, showing input fields and the Save button highlighted in red.
      1. Name: any name you want this connection to appear as;
      2. Server address: the information you got from your VPN provider;
      3. Sign-in info: the username and password you registered with on your VPN provider’s website.
    1. Tap Save, then select the VPN and hit Connect.

    Linux manual setup

    Don’t have a Linux VPN app? No problem.

    1. Download Linux configuration files from your provider.
    2. Move files to the correct system directories and ensure correct permissions.
    3. Use terminal commands to start the VPN connection. For more information, see our Linux guides for OpenVPN and WireGuard.

    Router VPN setup

    Even the best home VPN needs to be installed on each device to work — unless you set it up on your router.

    1. Check if your VPN provider supports your router model.
    2. Open a browser and enter your router’s IP address (usually 192.168.0.1 or 192.168.1.1).
    3. Log in with your router’s username and password.
    4. Configure the router’s VPN settings. If you’re using Surfshark, follow a guide for your router model:
      1. Asus routers;
      2. DD-WRT routers;
      3. Tomato routers.
    5. Connect to your home network.

    Note: This process can differ depending on the type of VPN router you’re using. For more help, use our dedicated guide on setting up a VPN on a router.

    Choosing a VPN Protocol

    Understanding VPN protocols helps you select the best option for your needs, whether using apps or manual setup.

    WireGuard (recommended for most users)

    • Newest, fastest protocol with excellent battery life;
    • Strong security with a simplified code base;
    • Best choice for mobile devices and general use.

    OpenVPN

    • Highly secure, widely supported protocol;
    • Best for maximum device compatibility;
    • Ideal when WireGuard isn’t available.

    IKEv2

    • Excellent for mobile devices with frequent network switching;
    • Good balance of speed and security;
    • Particularly stable on iOS and macOS.

    Troubleshooting common VPN setup issues

    When VPN setup doesn’t go as planned, these solutions address the most frequent problems.

    Cannot connect to a VPN server

    • Verify the internet connection is working properly;
    • Check that VPN credentials are entered correctly;
    • Try different server locations;
    • Restart your device and try again.

    VPN connects, but there’s no internet access

    • Check DNS settings in VPN configuration;
    • Disable IPv6 temporarily to test connection;
    • Try different VPN protocols (WireGuard, OpenVPN);
    • Contact the VPN provider for server-specific issues.

    Slow VPN speeds

    • Select servers geographically closer to your location;
    • Switch to WireGuard protocol for better performance;
    • Test different server locations to find optimal speeds;
    • Close unnecessary applications consuming bandwidth.

    Frequent disconnections

    • Enable automatic reconnection in VPN settings;
    • Switch to more stable protocols (IKEv2 for mobile);
    • Check for interfering firewall or antivirus settings;
    • Update the VPN app to the latest version.

    VPN not working on mobile device

    • Disable battery optimization for the VPN app;
    • Allow the VPN app to run in the background;
    • Check mobile data and Wi-Fi connections;
    • Reset network settings if problems persist.

    Router VPN configuration fails

    • Verify a router supports your chosen VPN protocol;
    • Update router firmware to the latest version;
    • Reset the router to factory settings and reconfigure;
    • Consider a dedicated VPN router for better compatibility.

    Invalid credentials error

    • Double-check username and password spelling;
    • Ensure caps lock and special characters are correct;
    • Reset password through VPN provider if needed;
    • Contact customer support for account verification.

    Manual setup configuration problems

    • Verify all server details from the VPN provider;
    • Check protocol compatibility with your device;
    • Ensure a firewall isn’t blocking VPN ports;
    • Try different manual setup methods or protocols.

    Best practices for maintaining a stable VPN connection

    Proper VPN setup goes beyond basic configuration — follow these practices for maximum security.

    Enable kill switch protection

    • Prevents internet access if the VPN connection drops;
    • Available in most VPN apps by default;
    • Critical for maintaining privacy during connection issues.

    Activate DNS leak protection

    • Ensures DNS queries go through VPN servers;
    • Prevents ISP from seeing your browsing activity;
    • Usually enabled automatically in quality VPN apps.

    Use strong authentication

    • Enable two-factor authentication in your VPN account;
    • Use complex, unique passwords for VPN services;
    • Store credentials securely using password managers.

    Verify VPN connection

    • Test for IP address changes after connecting;
    • Check for DNS leaks using online testing tools;
    • Confirm the geographic location matches the VPN server.

    Regular security maintenance

    • Keep VPN apps updated to their latest versions;
    • Monitor for security notifications from your provider;
    • Review connection logs periodically for anomalies.

    What to look for in paid VPN services

    While manual setup is possible, paid VPN services offer significant advantages over free solutions. Here’s what to look for in a VPN service:

    Comprehensive security features:

    • Advanced encryption protocols and security audits;
    • Built-in leak protection and kill switches;
    • Regular security updates and vulnerability patches.

    Global server networks:

    • A vast selection of server locations worldwide;
    • Optimized servers for speed and reliability;
    • Specialized servers for streaming, gaming, or security.

    Customer support:

    • 24/7 technical assistance for setup issues;
    • Detailed setup guides and troubleshooting resources;
    • Expert help with complex configuration requirements.

    What makes Surfshark stand out:

    • Unlimited simultaneous device connections;
    • No-logs policy verified by independent audits;
    • 30-day money-back guarantee for risk-free testing.

    Final thoughts: should you set up a virtual private network?

    Manual VPN setup is a good option for users who want more control over their devices and don’t mind tinkering with their system preferences. For most users, though, an app from a reliable service is all that’s needed for a simple VPN installation.

    A tool like Surfshark makes VPN configuration a breeze, even on multiple devices. You likely won’t need to worry about manual setup, but if a problem ever pops up, Surfshark has a 24/7 customer care crew to assist you.

    If you’re looking for an easy VPN setup, save yourself the hassle and go with Surfshark to enjoy greater online privacy today.

    Streamline your VPN setup with Surfshark
    Try our 30-day money-back guarantee
    Surfshark

    FAQ

    How do I set up a VPN on streaming devices?

    Setting up a VPN on streaming devices is easy, since Surfshark is available for Android TV, Apple TV, and Fire TV Stick. Just install the app, log in, and connect to a server.

    Disclaimer: Please note that using Surfshark services for any illegal activities is strictly forbidden and violates our Terms of Service. Make sure that any use of Surfshark services for your particular activities conforms to all relevant laws and regulations, including those of any service providers and websites you access using Surfshark.

    Can I set up a VPN for free?

    Although you can find free VPN services, they often have limited features, slower speeds, and weaker security. A paid VPN like Surfshark offers better protection and performance.

    What is the easiest way to set up a VPN?

    The easiest method is to use a VPN app. Surfshark makes this process quick and user-friendly.

    Can I create my own VPN?

    You can create your own VPN using a server or router, but it’s complex and time-consuming. It’s much easier and safer to use a service like Surfshark.

    How long does it take to set up a VPN?

    Setting up a VPN app typically takes 2–5 minutes. Manual configuration may take 5–15 minutes, depending on your device and technical comfort level. Connecting to the VPN afterward takes just seconds.

    Do I need technical skills to set up a VPN?

    No technical skills are required for app-based VPN setup. Simply download the app, create an account, and connect. Manual setup is straightforward, with step-by-step instructions provided.

    Can I set up a VPN on multiple devices?

    Yes, Surfshark supports unlimited simultaneous connections. You can install the VPN app on each device individually or set up the VPN on your router for network-wide coverage.

    Will setting up a VPN slow down my internet?

    Quality VPNs may reduce your internet speed by 10–15% due to encryption overhead. For faster speeds, use the WireGuard protocol and select servers closer to your location.

    Is it better to use a VPN app or manual setup?

    For most users, VPN apps offer the best balance of security and ease. A manual setup provides greater control but requires some technical familiarity. Beginners should start with apps.