Free tech learning for everyone, from basics to pro

How Technology WorksBeginner

How a VPN works, and when you actually need one

In short: A VPN creates an encrypted tunnel between your device and a server run by the VPN company. Anyone on the same Wi-Fi, and your internet provider, can no longer see what you do inside it, and websites see the VPN's address instead of yours. It does not stop scams, viruses or tracking by the accounts you sign in to.

Animation: the main idea at a glance. It plays on a loop with no sound.

A private tunnel through a public place

VPN stands for Virtual Private Network. It is an app that sends all your internet traffic through a protected tunnel to a server run by the VPN company, before it goes on to the website you want.

Imagine posting letters in a busy office. Normally, anyone handling the post can see who each letter is addressed to. With a VPN, you put every letter inside a locked bag addressed to one trusted forwarding office. People along the way just see bags going to that office. The office opens the bag and posts each letter on for you.

Your traffic with a VPNYour deviceVPN app onEncrypted tunnelunreadable on thewayVPN serverunwraps andforwardsWebsitesees the VPNaddress
Figure 1. The Wi-Fi owner and your provider see only scrambled traffic to the VPN; the website sees the VPN's address, not yours.

What happens, step by step

  1. You switch on the VPN app. It connects to a VPN server, often in a country you choose.
  2. From then on, your device encrypts (scrambles) everything before it leaves, so it can only be unscrambled by the VPN server.
  3. The VPN server unscrambles it and sends it on to the website.
  4. Replies come back the same way, through the tunnel.

Two things change. First, people on the same network, such as the cafe Wi-Fi owner, and your own internet provider, can see that you are using a VPN, but not which sites you visit. Second, the websites see the VPN server's IP address, not your home's. See What's an IP address?

What a VPN does not do

This is where adverts tend to overpromise. A VPN does not:

  • Stop scams or phishing. If you type your password into a fake site, the VPN delivers it safely to the criminals. See Phishing basics.
  • Protect against viruses or dodgy downloads.
  • Make you anonymous to accounts you sign in to. If you are logged in to a social network or email, it still knows it is you.
  • Stop cookies and tracking. Websites can still recognise your browser. See Browsers and cookies.
  • Make you invisible to the VPN company. You are moving trust from your internet provider to the VPN provider, who could see where your traffic goes.

Also, most websites already use HTTPS (the padlock), which encrypts what you send to them. So a VPN adds less protection than it once did, although it still hides which sites you visit from the local network.

When a VPN is genuinely useful

SituationIs a VPN worth it?
Working from home and your employer gives you oneYes. It lets you reach work systems safely. Use the one they provide.
Public Wi-Fi in a cafe, hotel or airportHelpful, as it hides your activity from others on that network
You do not want your internet provider to see which sites you visitYes, if you trust the VPN company more
Ordinary browsing at home on your own Wi-FiUsually not essential
Hoping it will stop hackers or virusesNo. Updates, antivirus and care with links do that.

Before using a VPN to appear to be in another country, check the terms of the service you are using and the local law. Some streaming services do not allow it, and some countries restrict VPN use.

Choosing a VPN sensibly

  • Be cautious with free VPNs. Running servers costs money. Some free services pay for it by collecting and selling your data, or showing adverts.
  • Read the privacy policy. Look for a clear statement on what is logged, and ideally an independent audit.
  • Get it from the official app store or the company's own website, never from a pop-up advert.
  • Ignore scare adverts claiming your phone is "infected" or "being watched" unless you install a VPN right now. That is a pressure tactic.

Tip: On public Wi-Fi without a VPN, your phone's mobile data is often the safer choice for banking or shopping.

Want the technical version? See VPNs and IPsec.

Frequently asked questions

How does a VPN work, in simple words?

A VPN creates an encrypted tunnel between your device and a VPN server. Everything you send travels inside that tunnel, so people on the same Wi-Fi or your internet provider cannot read it, and websites see the VPN server's IP address instead of yours.

What is an IPsec VPN?

IPsec is a set of protocols that encrypts and authenticates traffic at the IP layer. It is widely used for site-to-site VPNs between offices and for remote access to company networks. Other VPN types use SSL/TLS or WireGuard.

Does a VPN make me anonymous?

No. A VPN hides your traffic from your local network and your internet provider, but the VPN provider can see it, and websites can still identify you through logins, cookies and browser fingerprints.

When do I actually need a VPN?

When using public Wi-Fi you do not trust, when connecting to your company network from home, or when you want to hide your browsing from your internet provider. For normal browsing of HTTPS websites at home, it adds less than many adverts suggest.

Key takeaways

  • A VPN wraps your traffic in an encrypted tunnel to the VPN company's server.
  • Local Wi-Fi owners and your provider cannot see which sites you visit; websites see the VPN's address.
  • It does not stop scams, viruses, cookies or accounts knowing who you are.
  • Using a VPN moves your trust to the VPN company, so choose one carefully.
Verified author✓ Valid
Issued to
FM TecHub Team
Role
Editorial team
Reviewer credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

The team writes practical, plain-English guides on networking, security and cloud.

More about the team →

© 2026 FM TecHub. Original content written for FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown