Skip to content
Home How To How to Set Up a VPN: A Step-by-Step Guide

How to Set Up a VPN: A Step-by-Step Guide

How to Set Up a VPN: A Step-by-Step Guide
Surfshark

A Virtual Private Network (VPN) provides privacy by hiding your online activities and making your IP address untraceable. The most effective VPNs not only secure your internet connection but also grant access to streaming services worldwide, allowing you to experience international content as if you were a local.

Difficulty

Moderate



Duration

20 minutes

What You Need

  • A Windows PC or Mac

  • An internet connection

If you’re intrigued by the concept of a VPN but are uncertain about how to start, this guide will show you the ropes. A straightforward setup can mask your browsing behavior while keeping your IP address private. For a more comprehensive approach, you might consider a system-level installation that secures everything without requiring you to run a VPN app or extension. This guide covers both Windows and macOS options.

Sign Up and Install Your VPN Service

Regardless of whether you choose a well-known option like NordVPN or our current favorite, Surfshark, the simplest way to begin is through the VPN app. Most leading VPN services provide software for Windows, macOS, and Linux, along with mobile applications for Android and iOS.

Step 1: Download the relevant application from your VPN provider’s website or the appropriate app store and proceed with the installation. You will need to register for the service to obtain an account and log in to utilize the VPN.

Step 2: Most VPNs include a quick connect feature, so if you’re not picky about the server you use, just click that. Within moments, you should connect to the fastest available server.

Should you wish to appear as if you’re located in a specific country or wish to access services like Netflix via your VPN, you’ll need to select a particular server. Your chosen VPN will provide a list of available regions and might highlight those optimal for streaming. Use the interface provided by the VPN to select the server that meets your needs. Then, click the Connect or Quick Connect button, and wait for the confirmation that you’ve established a connection.

The Proton VPN app makes basic operation simple, though researching some features was necessary.
The Proton VPN app makes basic operation simple, though researching some features was necessary.
Digital Trends

Step 3: If you prefer to manually choose a server, or at least connect to one each time your device starts, you can finish for today and start browsing securely with your new VPN. For a more automated experience, see if your VPN service provides options to connect automatically and launch upon startup. This is common among most services.

Head to the settings menu and locate the relevant options. Enable options for the VPN to launch with your operating system and connect on its own. The next time you turn on your device, it should automatically link to the fastest server.

Surfshark features a sleek design complemented by extra functionalities in the sidebar.
Surfshark features a sleek design complemented by extra functionalities in the sidebar.
Digital Trends

Alternative: Configure Your VPN Manually in Windows 11

If you prefer complete control over your VPN connection and are using Windows 11, you can use the built-in VPN configuration tool. Although this method requires more steps, it grants you greater control over your connection settings. Familiarity with Windows 11 will be beneficial, so consider doing some additional reading beforehand.

Before diving into the detailed steps, it’s wise to familiarize yourself with VPN protocols:

Understanding VPN Protocols

Older protocols like Point-to-Point Tunneling Protocol (PPTP) may be simpler to set up, but they carry risks due to vulnerabilities that expose them to potential attacks. It’s best to steer clear of PPTP.

Newer options, like Layer Two Tunneling Protocol (L2TP), utilize robust 256-bit encryption deemed secure for confidential communications. However, L2TP can also be susceptible if set up with shared keys, so pay attention to authentication methods.

OpenVPN is another popular choice, known for its security and versatility. It can run on multiple ports, making it hard to block, and supports both UDP and TCP. Its complexity, however, can make setup challenging, often requiring third-party tools.

For this guide, we’ll opt for the Internet Key Exchange Version 2 (IKEv2) protocol. IKEv2 combines robust security with speedy connections and is supported by both Windows and mobile macOS systems. It’s easy to install and reconnects swiftly if your VPN connection drops, making it an excellent choice for those who frequently switch between networks.

Setting Up a VPN in Windows 11

Step 1: Open the VPN configuration tool by typing VPN in the Windows search bar, then select VPN Settings. Alternatively, access it via the Settings menu under Network & Internet and select VPN from the options.

Step 2: Click on Add VPN to proceed.

Windows 11 VPN settings.
Digital Trends

Step 3: A dialog box will appear. In the VPN Provider dropdown, select Windows (built-in).

Fill in the Connection Name field with a name of your choice. For instance, if using NordVPN and connecting to a U.S. server numbered 2093, you might label it NordVPN USA 2093. A descriptive name will help you identify it later if you decide to add more connections.

Each VPN provider will have a directory of available servers. Refer to your provider’s documentation for specific server addresses — for example, NordVPN’s U.S. server at us2093.nordvpn.com. Enter this in the Server Name or Address field.

Opt for a nearby server for optimal speed and reliability. Conversely, if you’re trying to bypass geo-restrictions, pick a server from another country.

In the VPN Type field, select the protocol you’ve chosen to connect. Based on the previous information, choose IKEv2.

For the Type of Sign-in Info, select User Name and Password. VPN services commonly use this method, but check with your provider for specific login instructions. Most allow username and password logins.

Once done, click Save.

Windows 11 Add a VPN connection window.
Digital Trends

Step 4: Your new VPN connection should now be visible in the list. For most connection types, you’re ready to connect — skip ahead to Step 19. However, if you chose IKEv2, you’ll need to download a certificate and adjust some additional settings first.

Your VPN provider will guide you in downloading the certificate. Once obtained, open it. A security alert will pop up; select Open.

Windows 11 VPN connection saved.
Digital Trends

Step 5: In the certificate’s General tab, click Install Certificate at the bottom.

Step 6: The certificate wizard will prompt you to choose where to install the certificate. Be sure to select the bubble labeled Local Machine. Click Next, then confirm by checking Yes in the following security dialog.

Certificate import window
Digital Trends

Step 7: Select Place All Certificates in the Following Store, then click Browse.

Selecting the certificate store location
Digital Trends

Step 8: A pop-up will present a list of locations. Choose Trusted Root Certification Authorities and click OK.

Choose Trusted Root Certification Authorities
Digital Trends

Step 9: Press Next, then Finish. Click OK and confirm with another OK to finalize the certificate installation.

Proceed to save the new VPN certificate
Digital Trends

Step 10: Search for Control Panel in the Windows search bar and launch it.

Step 11: Select Network and Internet.

Select Network and Internet
Digital Trends

Step 12: Choose Network and Sharing Center.

Choose Network and Sharing Center
Digital Trends

Step 13: In the left column, select Change adapter settings.

Select Change adapter settings
Digital Trends

Step 14: Your VPN connection (e.g., NordVPN USA 2093) should appear here. Right-click it and select Properties. Then, click on the Security tab.

Choose Properties on your VPN connection
Digital Trends

Step 15: Under the Type of VPN, confirm it’s set to IKEv2. Ensure Require Encryption (Disconnect If Server Declines) is selected for Data Encryption. For Authentication, select Use Extensible Authentication Protocol (EAP) and choose Microsoft: Secured password EAP-MSCHAPv2. Click OK to finalize.

Make changes on the Security tab
Digital Trends

Step 16: You are now set to connect. Click on the Wi-Fi icon on the right side of the Windows taskbar. Your VPN connection should be visible at the top; click it and select Connect. If your username and password aren’t saved, you will need to enter them to authenticate. After connecting, enjoy a more secure internet experience.

One important aspect to remember with the built-in VPN connection tool in Windows 11 is that you’re configuring a specific server for your device. If you wish to manage multiple server connections, periodically repeat these steps. This way, if your current server becomes busy, you can switch to another for potentially improved speeds. Some services offer country-specific servers for bypassing geographic restrictions while providing several local servers for secure browsing.

Setting Up a VPN on a Mac

Establishing a VPN on macOS can be accomplished similarly to Windows. Have your username, password, server address, and certificates on hand if using IKEv2 for authentication.

Step 1: Download your VPN certificate per Step 8 from the Windows section and refer to your VPN provider for the specific URL to obtain the certificate. Once downloaded, it will be stored in your Downloads folder on your Mac. Click it to open.

Step 2: macOS will prompt you to Add Certificates. Click Add at the bottom right to include the certificate in your login keychain.

Step 3: In the Keychain Access window, log in through the Keychains menu on the left. Your VPN certificate (using NordVPN in this instance) should be visible. Right-click on it and select Get Info.

Step 4: Change the dropdown next to When Using This Certificate to Always Trust. You’ll need to enter your password to save the changes.

Step 5: Open System Settings by searching for it in Spotlight. In the System Settings, navigate to the VPN section.

A screenshot of macOS System Settings.
Digital Trends

Step 6: Click Add VPN Configuration and select IKEv2 from the dropdown menu. A new window will open for you to fill in your connection details.

A screenshot of macOS VPN Settings.
Digital Trends

Step 7: Name the VPN connection anything you prefer. However, using a name that includes your VPN provider, server number, and location can help you quickly identify the connection later. For this example, we named ours NordVPN USA 2093 to signify it connects to the NordVPN server 2093 based in the U.S.

Enter the Server Address and Remote ID from your provider’s guide, referring to their server list. In this case, type us2093.nordvpn.com into both fields, leaving the Local ID blank.

Next, set up your authentication by accessing Authentication Settings. Input your user credentials for the connection and click Create.

A screenshot of adding a VPN to macOS.
Digital Trends

Step 8: Your new VPN connection will now appear in the VPN section of System Settings. Toggle the switch to connect and start using the VPN. Your online activities will now be secured through this connection, ensuring your privacy is maintained.

A screenshot of a VPN connection on macOS System Settings.
Digital Trends

If you haven’t yet selected a VPN service, there are crucial factors to consider. While free VPNs are available, investing in a subscription often ensures faster speeds, more features, and superior service. Our guide can assist you in identifying the best VPN options for various needs, be it for academic use, streaming preferences, or household devices.

Subscriptions are typically more economical when you commit to longer terms. To ensure you’re not overpaying, review our list of the latest VPN deals.

  • Rebecca Fraser

    Rebecca covers all aspects of Mac and PC technology, including PC gaming and peripherals, at Digital Phablet. Over the previous ten years, she built multiple desktop PCs for gaming and content production, despite her educational background in prosthetics and model-making. Playing video and tabletop games, occasionally broadcasting to everyone's dismay, she enjoys dabbling in digital art and 3D printing.