VPN ads make it sound like an invisibility cloak. What a VPN really does is narrower and easier to understand: it encrypts your traffic and sends it through another computer, so the sites you visit see that computer's address and your internet provider sees only scrambled data. Here is what happens when you press Connect, what that protects, and what it leaves untouched.
Step 1: Your device and the VPN server agree on keys
The VPN app contacts a server run by the VPN company. The two prove who they are and agree on encryption keys that only they know. Modern services use ciphers such as AES-256 or ChaCha20. This takes a fraction of a second.
Step 2: Your traffic is routed into the tunnel
The app adds a virtual network adapter and changes your device's routing so that internet traffic goes to it. Every packet is encrypted and wrapped inside another packet addressed to the VPN server. This wrapped connection is what people call the tunnel.
From this point your internet provider can see that you are connected to a VPN server, how much data moves and when. It cannot see which sites you visit or what you send.
Step 3: The server forwards your requests under its own address
The VPN server unwraps each packet and sends it on to the real destination. The website sees the server's IP address as the source, so your own address and approximate location stay hidden from it. Replies travel back the same way: to the server, into the tunnel, and out on your device.
What a VPN protects
- From your internet provider and the network you are on: the sites you visit and the content of anything not already encrypted. This matters most on public Wi-Fi. See the dangers of public Wi-Fi.
- From websites: your real IP address and the city and provider it reveals. See what your IP address reveals.
- From IP-based blocks: restrictions that apply to your address or region.
What a VPN does not protect
- The VPN company can see what your provider used to see. You are moving trust, not removing it. A no-logs policy that has been independently audited is the main thing to look for.
- Accounts still know it is you. If you are signed in to Google, Facebook or a store, your address is irrelevant to them.
- Cookies and browser fingerprinting work the same with or without a VPN. Our browser information page shows what your browser shares.
- Malware and phishing. A VPN does not scan files or stop you typing a password into a fake page.
- It adds little to sites that already use HTTPS in terms of content: that is encrypted either way. The VPN's added value there is hiding which sites you visit and hiding your address from them.
Protocols: WireGuard, OpenVPN and IKEv2
The protocol is the set of rules for building the tunnel. WireGuard is the newest of the three, with a small codebase and fast connections. OpenVPN is older, widely audited and good at getting through restrictive networks. IKEv2 reconnects quickly when a phone switches between Wi-Fi and mobile data. Most apps choose for you. Details are in WireGuard vs OpenVPN vs IKEv2.
Where VPNs leak
A tunnel only protects what goes through it. Three things commonly go around it:
- DNS requests. If the names of the sites you visit are still looked up through your provider's servers, your provider sees them. This is a DNS leak.
- IPv6. Some VPNs carry only IPv4. If your connection also has IPv6 and the app does not block it, sites can see your real IPv6 address.
- WebRTC. The browser feature behind video calls can reveal an address outside the tunnel.
More in why a VPN can leak your IP.
Kill switch and split tunneling
If the tunnel drops, your device goes back to sending traffic normally, with your real address. A kill switch blocks all traffic until the tunnel is back. Split tunneling does the opposite on purpose: it lets chosen apps skip the VPN, which is useful for a banking app or a local printer and a common reason a browser turns out not to be protected.
Why a VPN can slow you down
Your traffic takes a longer route and is encrypted and decrypted on the way. The further away the server and the busier it is, the more you notice. Choosing a nearby server and a modern protocol keeps the cost small. On a fast connection, everyday browsing usually feels the same.
How websites can tell you are using one
The addresses VPN companies use are registered to hosting providers, not home internet providers, and many are on public lists. Sites also compare your device's time zone and language with the location of the address. That is why streaming services and banks sometimes block or challenge VPN connections. It does not mean your real address is exposed.
Check that yours is working
Do not take the app's "Connected" label on trust. Use the VPN check: record what websites see with the VPN off, connect, and compare. Then run the WebRTC leak test and the IPv6 test with the VPN on. Choosing between a free and a paid service is covered in free vs paid VPNs.