What Is a VPN and How Does It Work?
A VPN, or virtual private network, is one of the most heavily advertised pieces of consumer technology and one of the most misunderstood. Marketing often portrays it as a cloak that makes you anonymous and invulnerable. In reality it is a precise tool with a specific job: it creates an encrypted connection between your device and a server, and routes your internet traffic through that server. Knowing exactly what that does, and what it does not, helps you decide whether you need one.
The basic idea
Normally your device connects to websites through your internet provider. Your provider and any network along the path can see the destination addresses you contact, and the website sees your public IP address. With a VPN, your device first connects to a VPN server operated by the VPN company or by your employer. All your traffic travels through an encrypted "tunnel" to that server, which then forwards it to the destination. Websites see the VPN server's IP address instead of yours, and the local network sees only an encrypted connection to the VPN server.
How it works step by step
- Connection and authentication. The VPN app on your device contacts the VPN server and both sides verify each other, using certificates, keys or credentials.
- Key exchange. They agree on temporary encryption keys. Modern protocols use forward secrecy, so recorded traffic cannot be decrypted later if a key is stolen.
- Encapsulation. Each outgoing packet is encrypted and wrapped inside a new packet addressed to the VPN server.
- Forwarding. The server decrypts the packet and sends it to the real destination using its own IP address, then encrypts the reply and sends it back through the tunnel.
Behind the scenes this is the same routing described in How Does Internet Routing Work?, with an extra encrypted hop at the start.
Common VPN protocols
- WireGuard: a modern, compact protocol with strong cryptography and typically high speed. It is now supported in most commercial VPN apps and in major operating systems.
- OpenVPN: a long-established open-source protocol that is flexible and widely audited, though usually heavier than WireGuard.
- IKEv2/IPsec: fast at reconnecting when switching between Wi-Fi and mobile data, which makes it popular on phones.
- Older protocols such as PPTP: considered insecure and should be avoided.
Common ciphers are AES-256 and ChaCha20, both considered strong when properly implemented.
Types of VPN
Consumer VPNs are subscription services that let you choose servers in many countries. Remote-access VPNs connect employees to their company network so that they can reach internal systems securely. Site-to-site VPNs link two networks, such as branch offices, permanently. A self-hosted VPN on your own server or router gives you control, but you must maintain it, and its server address is easily traced to you.
What a VPN is good for
- Protecting traffic on untrusted networks. On café or hotel Wi-Fi, a VPN prevents the network operator and other users from observing your connections, although HTTPS already covers most web content.
- Hiding your IP address from websites and peers. Useful when torrenting, gaming or avoiding simple IP-based tracking, within limits discussed in Does a VPN Really Hide Your IP Address?
- Keeping your provider from seeing your destinations. The provider sees only that you use a VPN and how much data you move.
- Accessing a company network or resources limited to a certain country, where the terms of the service allow it.
What a VPN does not do
- It does not make you anonymous. If you log in to an account, your identity is known. Cookies and browser fingerprinting still work (see How Websites Track Visitors).
- It does not stop malware or phishing. It encrypts the path, not what you download or click.
- It shifts trust, not removes it. The VPN company can see the sites you visit, just as your provider could. You are choosing whom to trust.
- It does not guarantee legal protection. Illegal activity remains illegal.
Choosing a VPN carefully
Be skeptical of free VPNs; if the service is free, it often earns money from data or ads, and some have been found to inject trackers. When comparing paid services, look for: an independent security audit of the apps or no-logs claims, a transparent company with a clear jurisdiction and privacy policy, modern protocols such as WireGuard, a kill switch that blocks traffic if the tunnel drops, protection against DNS and IPv6 leaks, and reasonable pricing without lifetime-deal hype. Review sites are frequently affiliate-driven, so compare several independent sources. stor10 has no commercial relationship with any VPN provider.
Performance and costs
Because traffic takes an extra detour and must be encrypted, a VPN usually adds some latency and may reduce speed. Choosing a nearby server and a fast protocol keeps the impact small. Streaming and gaming services sometimes block known VPN addresses, which can cause errors, and banks may flag logins from unusual locations.
Conclusion
A VPN encrypts your connection to a server and makes websites see that server's address instead of yours. It is valuable on untrusted networks and for limiting what your provider and websites learn, but it is not an invisibility cloak. Treat it as one layer in a wider privacy toolkit, choose a provider you can trust, and combine it with good account security, such as the steps in How to Improve Your Online Privacy in 2026.
Frequently asked questions
Is using a VPN legal?
In most countries, yes. A few restrict or ban them, so check local law. Using one does not make illegal activity legal.
Should I leave my VPN on all the time?
Many people do, especially on mobile devices. If you notice problems with local services or banking, you can switch it off for those apps.