Free tech learning for everyone, from basics to pro

Photo: Đào Việt Hoàng on Unsplash

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.

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.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

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

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.