How Does a VPN Work? What Changed When We Switched One On

By Ayman Harb  ·  July 17, 2026

November 27, 2026

Reader-supported: if you buy through some links on this page we may earn a commission, at no extra cost to you. It doesn’t change what we write. How we make money.

A VPN wraps the traffic leaving your device in encryption and sends it to a VPN server before it goes on to the site or app you’re using. Your internet provider sees an encrypted connection to that one server, and the websites you open see the server’s IP address instead of yours. Protocols, kill switches and server lists are all about doing that reliably.

Below we show it with real results rather than metaphors: what changed on our own Telstra connection in Sydney when we switched a VPN on, who can see what before and after, and what a VPN leaves exactly as it was. Throughout, we mean a VPN app running on your device with all traffic going through it (a “full tunnel”), which is how the big consumer apps work by default. This is the privacy kind of VPN you install yourself; a work VPN uses the same idea to connect you into your employer’s network instead.

Key takeaways

  • A VPN builds an encrypted connection (the “tunnel”) between your device and a VPN server, and that server talks to the internet for you.
  • In our test, connecting moved our public IP address from Telstra in Sydney to a Proton server in Tokyo, and the DNS servers answering our lookups from Telstra’s to Proton’s.
  • Your internet provider still sees that you’re online, when, and how much data you use. It stops seeing which sites you connect to.
  • The VPN company now has the view your provider used to have, which is why its no-logs record matters.
  • Logged-in accounts, cookies and your phone’s GPS work the same with a VPN on, and only the device running the app is covered.

What your provider sees without a VPN

Your phone or laptop sends every request through your home router to your internet provider (Telstra, Optus, Aussie Broadband and so on), which passes it on to the website. HTTPS, the encryption almost every site now uses, hides the pages you read and what you type from your provider. It doesn’t hide which site you’re talking to, for three reasons:

  • Your DNS lookups. Before your device opens a site, it asks a DNS server to turn the name into an address. On most home connections that’s your provider’s DNS server by default, and ordinary DNS isn’t encrypted, so the provider can see the names you look up. Some browsers now switch to encrypted DNS automatically; Chrome, for example, upgrades to your current DNS provider’s encrypted service when it offers one, which still leaves the lookups with that provider.
  • The site’s name in the HTTPS handshake. When your browser starts an HTTPS connection it usually sends the site’s name in the clear (a field called SNI), so anyone watching the line can read it. A newer standard being finalised at the IETF, Encrypted Client Hello, hides it, but only where both the browser and the site support it.
  • The destination IP address. Your provider routes every connection, so it sees the address you connect to. Big hosting services share addresses between many sites, so the address alone doesn’t always name the site.

Every site you open also sees your IP address, which points back to your provider and usually your city.

What happens when you press Connect

  1. The app agrees keys with a VPN server. Your device and the server set up encryption keys using a protocol such as WireGuard, OpenVPN or IKEv2. The app also checks the server’s key or certificate, so a café network can’t quietly pretend to be your VPN server. Our VPN protocols guide compares them.
  2. Your traffic is wrapped. Each packet addressed to a website is put inside a new encrypted packet addressed to the VPN server. Your DNS lookups go inside the tunnel too, to the VPN’s own DNS servers. To your router and your provider it looks like one stream of encrypted data to a single address.
  3. The VPN server unwraps the outer layer. The server removes the VPN encryption and sends your request on from its own IP address. If the site uses HTTPS, the request itself is still encrypted between your browser and the site, so the VPN server can see where it’s going but not the page or what you type.
  4. Replies come back the same way. The site answers the VPN server, which wraps the reply and sends it down the tunnel to you.

The UK’s National Cyber Security Centre puts the main limit plainly: only traffic routed over the VPN is protected by it. Australia’s eSafety Commissioner adds the practical version: your VPN only works while its app is running. That’s why a kill switch (which blocks traffic if the tunnel drops) and split tunnelling (which deliberately lets chosen apps skip the tunnel) matter. See our guides to the kill switch and split tunnelling.

What changed in our Sydney test

On the evening of 9 October 2026 we ran the free Proton VPN Windows app (WireGuard protocol) on a Telstra home connection in Sydney, and checked the same things with the VPN off and then on, using ipleak.net, dnsleaktest.com and fast.com. The app chose a free server in Japan, JP-FREE#2. The session lasted about 12 minutes.

Proton VPN Windows app connected to the free server JP-FREE#2 in Japan over Proton WireGuard
Connected: the app chose JP-FREE#2 in Japan for us (9 October 2026).
VPN offVPN on (Proton, Tokyo)
Public IP address seen by test sitesTelstra, SydneyProton server, Tokyo
DNS servers answering our lookups (dnsleaktest.com)12 addresses, all Telstra4 addresses, all Proton VPN in Tokyo
IPv6Our Telstra IPv6 address visibleReported as not reachable, so no Telstra IPv6 address showed
WebRTC (browser feature that can expose your IP)No IP address exposedNo IP address exposed
Download / upload (fast.com)350 / 44 Mbps320 / 40 Mbps
Latency5 ms114 ms
dnsleaktest.com with Proton VPN connected: four DNS servers, all Proton VPN in Tokyo, Japan
With the VPN on, dnsleaktest.com listed only Proton servers in Tokyo. With it off, every address belonged to Telstra.

The IP and DNS rows show the tunnel doing its job: the test sites saw Proton, and none of our lookups reached Telstra’s DNS servers. The IPv6 row matters because a VPN that only carries the older IPv4 traffic can leave IPv6 going around the tunnel; here no Telstra IPv6 address appeared. The latency row is mostly the trip: every request now went to Tokyo and back. On a Sydney server, our separate Surfshark test that month measured 8 ms, which points to distance rather than encryption as the main cost, though one test each can’t prove it.

Who sees what, before and after

Without a VPNWith a VPN
Your internet providerWhich sites you connect to (through DNS, the site name and the address), when, and how much dataThat you’re connected to a VPN server, when, and how much data
Café, hotel or work Wi-Fi ownerMuch the same as your provider, on their networkA connection to a VPN server
The VPN companyNothing about your browsingYour real IP address and which sites or addresses you connect to (not the pages themselves on HTTPS sites)
The websites you visitYour IP address and rough locationThe VPN server’s IP address and location

The Electronic Frontier Foundation sums up the trade: a VPN hides your outgoing traffic from your provider and the local network owner, but the VPN provider can see your device’s traffic, so don’t use one you don’t trust. eSafety makes a similar point from the other side: a VPN doesn’t hide the fact that you’re using the internet from your provider. A VPN moves trust from your provider to the VPN company. Our guide to what “no logs” means explains how to judge that company.

Work laptops are a separate case. Monitoring software on a managed device can see what you do before anything enters a tunnel; see can your employer see your VPN.

What Australian providers must keep anyway

Under the Telecommunications (Interception and Access) Act, Australian internet providers must keep a set of data about your service for at least two years. For home internet, the Department of Home Affairs’ guidance lists things like when your service logged on and the IP addresses allocated to you during each session. The same guidance says the required data set explicitly excludes your web browsing history and the content of your communications. That’s what the retention law requires them to keep; it isn’t a rule about everything a provider could collect for other reasons.

A VPN doesn’t change the connection records your provider keeps: it still knows your account was online, when, and from which address. What a VPN changes is the live view of where your traffic goes, such as the sites you look up through its DNS servers. Our guide to what your ISP can see goes further.

What a VPN doesn’t change

  • Accounts you’re signed into. Google, Facebook or a shop knows it’s you whatever IP address you arrive from. The EFF flags the same thing for browsing history saved to an account or a browser.
  • Cookies and browser fingerprinting. A new IP address removes one clue, but sites can still recognise your browser by its cookies and settings. The EFF’s Cover Your Tracks test shows how unique your browser looks with or without a VPN. Our guide on what a VPN does and doesn’t protect covers this.
  • Your phone’s GPS. Apple and Google both describe location services as using GPS, Wi-Fi and mobile networks, and apps you’ve given location permission can read it whatever your IP address says. See does a VPN hide your location.
  • Malware and phishing. A tunnel doesn’t check what you download or which login page you type into. eSafety notes a VPN doesn’t give 100% protection, and the US FTC points out that an encrypted connection to a scam site is still a scam site.
  • Traffic outside the tunnel. If the VPN drops without a kill switch, or an app is excluded by split tunnelling, that traffic goes out normally.
  • Other devices. A VPN app protects the device it runs on. Your TV or your partner’s phone on the same Wi-Fi isn’t covered unless the VPN runs on your router.

Check it on your own connection

  1. With the VPN off, open our IP leak test and write down your public IP address (IPv4 and, if shown, IPv6) and the DNS servers listed.
  2. Connect the VPN and run the test again. Your own IP addresses from step 1 should no longer appear anywhere, including the IPv6 and WebRTC results.
  3. Check the DNS servers. If the ones from step 1 still show up, your lookups are skipping the tunnel: turn on the app’s DNS and IPv6 leak protection and test again. Our four quick VPN checks walk through each result.

FAQ

Does a VPN slow down my internet?

Usually a little, and distance is the biggest factor. In our test, download speed held at 320 of 350 Mbps on a server in Japan, but latency rose from 5 ms to 114 ms. Results vary by provider, server and time of day; our speed tests on 7 VPNs have more.

Can my internet provider see that I’m using a VPN?

Yes. It sees a connection to the VPN server’s address, when it starts and stops, and how much data passes. It can’t see the sites you open inside the tunnel.

Is a VPN the same as HTTPS?

No, and you want both. HTTPS encrypts what passes between your browser and one website, all the way to that site. A VPN encrypts everything between your device and the VPN server, including DNS lookups and apps that don’t use HTTPS, and hides which sites you visit from your provider.

Does a VPN protect every device in my house?

No. An app protects only the phone or computer it’s installed on. To cover everything on your Wi-Fi, the VPN has to run on the router; see our router VPN guide.

Is a VPN the same as antivirus?

No. A VPN protects your connection; antivirus protects your device from malicious software. Many people use both.

Sources

HidVPN at a Glance
17
VPNs Reviewed
100%
Editorially Independent
2026
Data Refreshed
Not sure which VPN?
Answer 4 quick questions and get a match.
Take the Quiz