How-To Guide11 min read·

Set Up a Secure VPN Connection on Windows (11 and 10)

GhostShield VPN
The screen of a laptop with the windows security button highlighted
Photo by Ed Hardie on Unsplash
Continue reading

Windows 11 has a VPN client built in. Add a profile under Settings > Network & internet > VPN > Add VPN, pick IKEv2 as the type, and connect. Here are the exact steps, followed by the checks that tell you whether the connection is actually secure.

Settings > Network & internet > VPN > Add VPN in Windows 11, with the seven steps to add and connect a built-in VPN The Windows 11 built-in VPN setup, using the Settings path Microsoft documents.

How to set up a secure VPN connection on Windows 11 (quick steps)

  1. Open Settings > Network & internet > VPN, the path Microsoft gives on support.microsoft.com and support.office.live.com.
  2. Select Add VPN.
  3. Under VPN provider, choose Windows (built-in).
  4. Enter a connection name, then the server name or address your VPN service or employer gave you.
  5. Set VPN type to IKEv2, or SSTP if IKEv2 is blocked. Never choose PPTP.
  6. Choose the sign-in type, add your details, then select Save.
  7. Select Connect.

The built-in client only reaches a server someone else runs, such as your workplace or a VPN service, and it does not offer WireGuard or OpenVPN. The route comparison further down shows what you gain with an app instead.

Before you start: what goes in the Add VPN fields

Microsoft's support pages say you need a VPN profile on the device before you can connect. The Add VPN dialog asks for these fields:

Field in Add VPNWhat to enter
VPN providerWindows (built-in)
Connection nameAny label you will recognise, such as "Work VPN"
Server name or addressA name like vpn.example.com or an IP address
VPN typeIKEv2 first, SSTP as a fallback
Type of sign-in infoUsername and password, certificate, or pre-shared key
User name and passwordYour credentials, if that sign-in type uses them

These details come from one of two places. For a work VPN, your employer's IT team provides them. For a VPN service, look for its manual setup page: some services publish IKEv2 settings for native Windows setup, and Windscribe's knowledge base ranks on this search with exactly that kind of guide.

Microsoft notes the feature is not available in Windows 11 SE.

Which VPN type to pick in Windows: IKEv2, SSTP, L2TP or PPTP

The VPN type menu in Windows lists Automatic, PPTP, L2TP/IPsec with certificate, L2TP/IPsec with pre-shared key, SSTP and IKEv2. Your choice here decides how secure the connection really is.

VPN type in WindowsSecurityTypical useNotes
IKEv2Strong, modern IPsecLaptops that move between networksFirst choice. Reconnects quickly after sleep or a network change
SSTPStrong, runs over HTTPS (TCP 443)Networks that block IPsecFallback. Often passes firewalls, but TCP can be slower on lossy connections
L2TP/IPsec with certificateGoodOlder work setupsPick this over the pre-shared key option when both are offered
L2TP/IPsec with pre-shared keyOnly as strong as the keyOlder routers and serversA short key printed on a router or shared across an office is weak
PPTPOutdated, widely considered brokenLegacy setupsDo not use
AutomaticWindows picks for youUnknown serversAvoid: you cannot be sure which protocol you are on

IKEv2 is the one to pick when your server supports it. For how it improved on the older version, see IKEv2 vs IKEv1. If you are deciding between SSTP's HTTPS approach and IPsec, TLS VPN vs IPsec covers the trade-offs in firewall handling and speed.

PPTP: do not use it

PPTP is decades old and still appears in tutorials. The Vircom server guide on this search uses PPTP on TCP port 1723 with GRE protocol 47, and Vircom itself calls that a basic setup. Basic is not the same as secure, so choose IKEv2 or SSTP instead.

What Windows does not include: WireGuard and OpenVPN

Windows has no native WireGuard or OpenVPN, so both need an app. Rapid7's guide on this search covers installing OpenVPN on Windows. If you go that way, read OpenVPN UDP vs TCP before you pick a config file.

Built-in Windows VPN vs a VPN app: which route is more secure?

The two routes differ on five points:

Windows built-in clientVPN app (WireGuard)
ProtocolIKEv2, SSTP, L2TP/IPsec, PPTPWireGuard, often with IKEv2 and OpenVPN as options
Kill switchNo settingBuilt into the app
DNS leak protectionNo setting, depends on the profileBuilt into the app
SetupType server, VPN type and sign-in details by handInstall the app and sign in
MaintenanceUpdate server details by hand when they changeServer locations come with the app

Comparison table of Windows built-in VPN types against a VPN app running WireGuard What each route gives you on Windows. A kill switch and DNS leak protection come with an app, not the built-in client. The biggest gap is the kill switch. A kill switch blocks your internet traffic whenever the VPN tunnel drops, so nothing slips out over your normal connection. The built-in client has no kill switch setting: if the tunnel drops, your traffic carries on unprotected and Windows gives no warning. On café or hotel Wi-Fi, that can happen without you noticing for hours.

DNS is the second gap. With the built-in client, whether your DNS requests go through the tunnel depends on the profile, and there is no switch for leak protection. The only way to know is to run a leak test.

Maintenance is the third. You type the server details yourself and change them by hand whenever the server changes.

Pros and cons of the Windows built-in VPN client The built-in client suits a managed work VPN. For public Wi-Fi, the missing kill switch matters.

When the built-in client is enough

  • A work VPN: your employer gives you an IKEv2 or SSTP profile and IT manages the server.
  • Your own server: you connect to a home or office server you run and patch yourself.

When an app is the better choice

An app is the safer route for public Wi-Fi, travel and everyday privacy, because you get WireGuard, a kill switch and DNS leak protection without typing a server address. If you are choosing one, run our six checks for VPN software on Windows on your own PC. For more situations where a VPN helps, see our VPN use cases.

How to set up GhostShield VPN on Windows with WireGuard

With an app, there is nothing to type into Windows Settings:

  1. Start the 14-day free trial. Nothing is charged during the trial.
  2. Install the GhostShield VPN Windows app and sign in.
  3. Check that the kill switch and DNS leak protection are on.
  4. Connect to the location nearest you.

WireGuard with ChaCha20-Poly1305 is the default protocol. The app also offers IKEv2 and OpenVPN, but not L2TP, PPTP or SSTP. If a school, office or hotel network blocks VPNs, switch on Stealth mode, which is built for those networks.

GhostShield VPN has servers in 16 countries (20 locations), and one account covers up to 10 devices at once. WireGuard adds little overhead, so the distance to the server matters most for speed. Pick the closest location.

Four steps to set up GhostShield VPN on Windows WireGuard is the default protocol in GhostShield VPN, so there are no server details to type.

How to connect and disconnect from the Windows taskbar

Windows 11 quick settings

Microsoft's support pages give two ways to connect once a profile exists:

  • From the taskbar: select the Network, Volume, Battery icon, then VPN. Toggle the left side of the VPN quick setting to turn it on or off. Or choose Manage VPN connections, pick the connection, and select Connect.
  • From Settings: go to Network & internet > VPN and select Connect next to the profile.

Windows 10 steps

On Windows 10, go to Settings > Network & Internet > VPN > Add a VPN connection, fill in the same fields, save, then select the connection and choose Connect.

Microsoft ended Windows 10 support on 14 October 2025 (see the FAQ below for what that means for your VPN).

How to check your Windows VPN connection is actually secure

Microsoft says the VPN settings page shows "Connected" under the connection name. That proves the tunnel is up. It does not prove nothing is leaking.

Run these free checks with the VPN on:

  1. What Is My IP: the address shown should belong to the VPN server, not your home connection.
  2. DNS leak test: no servers from your internet provider should appear.
  3. WebRTC leak test: run it in every browser you use, because each one handles WebRTC separately.
  4. A drop test: start a large download, disconnect the VPN, and watch whether traffic stops.

Checklist for confirming a Windows VPN connection is secure Run these checks after any new VPN setup. If the connection keeps falling over, here is why your VPN keeps disconnecting. If a protocol will not connect at all, the network may be blocking its port, so test VPN protocol ports next.

Setting up a VPN server on Windows (for admins)

This section is for readers who want to host a VPN rather than connect to one. Vircom's guide sets up a basic VPN server on Windows Server 2016 or 2022 using PPTP, though it notes its walkthrough example uses Windows Server 2008.

Vircom's main reason for doing it is RDP. Leaving port 3389 open to the internet invites attacks on flaws such as BlueKeep (CVE-2019-0708), which allows remote code execution on unpatched systems. Putting RDP behind a VPN reduces that exposure.

Because PPTP is broken, configure IKEv2 or SSTP on the server's remote access role instead, and keep the server patched.

Try GhostShield VPN on your Windows PC

The GhostShield VPN Windows app runs WireGuard by default, with a kill switch, DNS leak protection, split tunneling, and ad and malware blocking, under a strict no-logs policy.

Every plan starts with a 14-day free trial, so you can run the checklist above on your own PC first:

  • No charge during the trial. A $1 hold checks your card and is released right away.
  • A reminder email arrives one to three days before the trial ends, before any charge.
  • Cancel any time with "Cancel plan" on the Profile page.

The yearly plan is $4.99 a month ($59.88 billed yearly), with a 30-day money-back guarantee. Start the 14-day free trial.

FAQ

Does Windows 11 have a built-in VPN?

Yes. Windows 11 has a built-in VPN client under Settings > Network & internet > VPN, and it supports IKEv2, SSTP, L2TP/IPsec and PPTP. It only connects to a server someone else runs, such as your employer or a VPN service. Microsoft notes it is not available in Windows 11 SE.

Is the Windows built-in VPN secure enough for public Wi-Fi?

It encrypts your traffic well with IKEv2 or SSTP, but it has no kill switch or DNS leak protection setting. For public Wi-Fi, an app with both is the safer choice.

Which VPN type should I choose in Windows settings?

Choose IKEv2 first. It is a modern IPsec protocol and reconnects quickly when your network changes. If your network blocks IKEv2, use SSTP, which runs over TCP port 443. Use L2TP/IPsec only with a certificate or a long key, and never choose PPTP, whose encryption is widely considered broken.

Can I use WireGuard or OpenVPN without installing an app on Windows?

No. Windows does not include WireGuard or OpenVPN, so you need an app for either one. A VPN service's own app is the simplest route, because it handles server details and keys for you. GhostShield VPN, for example, uses WireGuard by default with nothing to configure by hand.

Why does my Windows VPN say Connected but my IP has not changed?

"Connected" only means the tunnel is up. Your traffic may not be going through it, or DNS requests may be leaking. Check What Is My IP first, then run a DNS leak test. If your home address still shows, review the profile settings or ask whoever runs the server.

Is it still safe to use a VPN on Windows 10 after support ended?

The VPN itself still works, but the system underneath it is the risk. Microsoft stopped free security updates for Windows 10 on 14 October 2025, and a VPN cannot protect an unpatched operating system from new flaws. Microsoft says the PC keeps working but recommends moving to Windows 11, and that is the safer move.

Related Topics

set up a secure vpn connection windowsset up a secure vpn connection windows 11setup vpn for windows

Keep Reading