What is a VPN?

A virtual private network (VPN) creates an encrypted connection, often called a tunnel, between your Windows PC and a VPN server. Your internet traffic travels through that tunnel before reaching the wider internet.

Last updated:

How a VPN works

A VPN for PC use works the same way on every device. When the VPN is connected, Windows sends your network traffic to the VPN server first. The server decrypts it and forwards it to its destination. Replies travel back the same way.

Your Windows PCEncrypts outgoing traffic
Encrypted tunnelUnreadable to the local network and your provider
VPN serverDecrypts and forwards traffic
Website or serviceSees the server's IP address

Two ideas make this work:

  • Encryption scrambles data so that anyone between your PC and the VPN server sees only unreadable ciphertext.
  • Tunneling wraps your traffic inside another network protocol, so the local network only sees a connection to the VPN server.

What a VPN protects

  • Traffic on untrusted networks. Other users on public Wi-Fi cannot read or modify data inside the tunnel.
  • Browsing details from your internet provider. Your provider can see that you use a VPN and how much data you send, but not which sites you visit.
  • Your real IP address. Sites and services see the VPN server's address, which hides your approximate location from them.
  • DNS lookups, when the VPN is configured to route DNS through the tunnel (how to check for DNS leaks).
  • Access to private networks. A company VPN lets remote staff reach internal resources as if they were in the office.

What a VPN does not do

  • It does not make you anonymous. Accounts you sign in to, cookies and browser fingerprinting can still identify you.
  • It does not stop malware or phishing. Keep Microsoft Defender (or another security solution) and Windows Update active.
  • It does not hide your activity from the VPN operator. The VPN server can see the traffic it forwards, so trust in the operator matters.
  • It does not replace HTTPS. Traffic between the VPN server and a website is only encrypted if the website itself uses HTTPS.
  • It does not make illegal activity legal. Laws still apply when a VPN is in use.

Common types of VPN

Remote-access VPN

Connects a single device to a network. This is the type you set up on a Windows PC, whether to reach a company network or a VPN service.

Site-to-site VPN

Connects two whole networks, such as two office locations. It is usually configured on routers or firewalls, not on individual PCs.

Personal VPN service

A provider operates servers in many locations and lets individuals route their traffic through them for privacy on public networks.

How to judge a VPN service

Because the VPN operator can see your traffic, choose carefully. Look for:

  • A clear privacy policy and, ideally, an independent audit of its no-logs claims.
  • Support for modern protocols: WireGuard, OpenVPN or IKEv2.
  • DNS leak protection and a kill switch that blocks traffic if the tunnel drops (what is a kill switch?).
  • Transparent ownership and a known legal jurisdiction.
  • A sustainable business model. Services with no clear way of funding themselves may collect or sell user data.

Next step: see the setup guide to add a VPN connection in Windows, or compare options on the protocols page.