Can Hackers See Your Data on Public Wi-Fi with a VPN?
A VPN hides the content of your traffic from other people on the same Wi-Fi, but not everything. Here is exactly what an attacker on the network can still observe.
9 min readUpdated Oct 15, 2026By XPASS Editorial Team

Most people picture a hacker on public Wi-Fi as someone in a hoodie who watches every page you open. With a VPN on, that picture is mostly wrong, but not completely. The more useful question is not whether you are "safe" but which specific things an attacker sitting at the next table can still learn or do, and which things the tunnel genuinely takes away from them.
This article answers that for the exact scenario in the title: a VPN running on a cafe, hotel, airport or coworking network. It walks through what stays hidden, what still shows, which attacks a VPN does not touch, and a short routine you can follow. For the wider habits around shared networks, see how to stay safer on public Wi-Fi.
What an attacker on the same Wi-Fi can do without a VPN
To judge what a VPN removes, start with what is possible without one. Anyone connected to the same access point shares the same radio space and, on many networks, the same local network segment. A person with basic tools can do the following.
- Watch the network passively. On an open network, or one with a shared password, other users may be able to capture traffic that passes through the air. Modern sites hide page content with HTTPS, but the destination names and the volume of data are still visible.
- See which sites you contact. Even when the page content is encrypted, the domain you ask for is normally visible to the network owner and to anyone watching the connection.
- Run a fake hotspot. A rogue device can copy the name of the genuine network. Phones that auto-join known names may connect without you noticing.
- Redirect you. On badly managed networks, an attacker can try to answer your device's questions with false information so that a request for one address ends up somewhere else.
- Probe your device. Other computers on the same network can try to reach file sharing, remote desktop or other services on your laptop if those are switched on.
These are the reasons consumer agencies advise caution on shared networks. The US Federal Trade Commission explains the risks of public Wi-Fi in plain terms, and its advice about HTTPS and updates still applies once a VPN is running.

What the VPN tunnel takes away from them
When your VPN is connected, your device wraps its internet traffic in an encrypted tunnel to a VPN server and sends only that wrapped stream across the Wi-Fi. Read the Cloudflare explanation of a VPN if you want the mechanics; the result for a shared network is this.
| Thing the attacker wants | Without VPN | With VPN connected |
|---|---|---|
| Which websites you open | Visible as domain names | Hidden inside the tunnel |
| Content of unencrypted pages and apps | Readable | Hidden |
| Your DNS lookups | Visible on the local network | Sent inside the tunnel when the app handles DNS correctly |
| Quiet redirection of requests on the local network | Possible on weak networks | Much harder, since your traffic does not travel as plain local requests |
| Which apps are talking in the background | Often guessable | Not visible |
So the main gain is concealment of content and destination. A person in the next seat who captures your Wi-Fi traffic ends up with scrambled data addressed to a single VPN endpoint.
That gain is larger on some devices than others. Phones and laptops constantly talk to servers in the background for updates, sync, backups and notifications. Many of those connections are not something you click, so you cannot judge them by looking at a padlock. A tunnel covers all of them at once, which is why it is useful even if you only browse "safe" sites.
What still shows on the network even with a VPN
Be exact about the leftovers, because this is where overconfidence causes trouble.
- That you are on the network. The access point sees your device's hardware address and its connection. Many phones randomise this address per network, which helps, but it is not universal.
- That you are using a VPN. The observer sees traffic to one address that behaves like a tunnel. They cannot read it, but they can often tell that it is one.
- How much and when. Volume and timing are visible. A large steady flow looks like video; short bursts look like messaging. Nobody can read the content, but patterns exist.
- The VPN server address. Your device has to contact the VPN server to start the tunnel, and that address is visible.
- Anything before the tunnel is up. If the VPN is not yet connected, or has dropped, your traffic goes out in the open until it reconnects.
That last point is the practical weak spot. Phones and laptops send traffic the moment they join a network: mail checks, app updates, cloud sync. If you connect the VPN thirty seconds after joining, those first requests have already gone out unprotected. A kill switch, where your VPN app offers one, reduces this; see what a VPN kill switch is for how it works.
Attacks a VPN does not stop on public Wi-Fi
The network is only one place where things go wrong. A VPN does nothing about the following.
- Fake login pages. The captive portal on many cafe networks asks you to accept terms or enter an email. A copycat network can show a page that asks for more: a card number, a social account password, a phone number. The VPN does not judge whether a page is honest. The CISA guidance on recognising phishing, and our piece on recognising phishing websites, are the right tools here.
- Malware on your device. If something malicious is already installed, or you install it from a "required update" prompt on a hotspot page, it can read data before the tunnel encrypts it.
- Weak or reused passwords. A VPN does not make a leaked password useless. Two-factor authentication does that.
- Bad permissions on your own device. File sharing, screen sharing and remote login should be off when you travel.
- Someone looking at your screen. Shoulder surfing is a human problem.
For the broader list, read what a VPN cannot protect you from.
Does HTTPS already cover this?
Largely, for web pages. When a site uses HTTPS, the content of the page, the form you submit and the cookies sent along are encrypted between your browser and the site. An attacker on the Wi-Fi cannot read your password just by watching. Our comparison of HTTPS and a VPN goes through the division of labour in detail.
What HTTPS does not hide is the site name, and it only covers traffic that actually uses it. A few examples of where the gap matters on a shared network:
- An app that talks to its own servers over a poorly set up connection.
- A smart-home or printing device on the local network.
- A connection to a site that quietly downgrades to plain HTTP because you typed the address without the secure prefix.
- Background services that report to a company without any visible padlock.
If you rely on HTTPS alone, you cover the browser very well and the rest unevenly. A VPN evens that out. If you use both, a person watching the Wi-Fi sees neither the page content nor the site names.
A realistic scenario: the airport coffee shop
Take a traveller named Sara waiting for a delayed flight. She joins "Airport_Free_WiFi", accepts the terms page, opens her mail and checks a bank balance.
What an attacker with a laptop nearby could have done, with no VPN: note that she visited her bank's domain, note that she is using a mail service, and, if she had joined a fake hotspot with the same name, show her a convincing login page of its own.
What changes if she connects her VPN right after the terms page:
- Her mail and bank traffic is wrapped inside the tunnel, so the attacker sees only encrypted data to one address.
- The attacker can still see that she is using a VPN and roughly how much data she moves.
- If the hotspot was fake and asked for her mail password, the VPN would not have helped. She needs to notice that a free Wi-Fi page asking for a mail password is wrong.
The third point is the lesson. A VPN reduced one risk and left another untouched. The remaining protection comes from Sara's habits, which is why the routine below matters as much as the tool.

A short routine that actually works
You do not need a long checklist. Five steps cover most of it.
- Confirm the network name with staff or a sign, and ignore similar names.
- Turn off auto-join for open networks on your phone and laptop, and delete old hotspots you no longer use.
- Connect the VPN immediately after any terms or login page, before opening sensitive apps. If you use the XPASS VPN setup, the steps are in connecting to a VPN on public Wi-Fi.
- Check the padlock and the address before entering a password, and use two-factor authentication on mail, banking and social accounts.
- Disconnect and forget the network when you leave, and keep system and app updates current.
If a hotspot seems to refuse VPN traffic, some networks do restrict it. Use your phone's mobile data for sensitive tasks instead of looking for a clever workaround. Hotel networks have their own quirks, covered in using a VPN on hotel Wi-Fi.
Common mistakes
- Assuming "VPN on" means "everything is safe". The tunnel covers the network path only.
- Connecting late. The first minute after joining is the exposed one.
- Ignoring a VPN that has silently dropped. A weak signal can disconnect it. Look at the status icon before you log in.
- Entering personal details on the Wi-Fi sign-up page. Give the least you can, and use a throwaway address if an email is required.
- Treating a free VPN app as equal. Some free apps collect more than they protect; see whether free VPNs are safe before installing one on a hotspot.
- Using a shared or borrowed computer. A keylogger on the machine defeats any tunnel.
Summary
With a VPN on, a person on the same public Wi-Fi cannot read your pages, messages or lookups, only that you are connected, that you are using a tunnel, and roughly how much data you send. What the VPN does not stop is just as important: fake login pages, malware, weak passwords, the unprotected moments before the tunnel starts, and a rogue hotspot you joined by mistake. Pair the VPN with careful joining, quick connection, updates and two-factor authentication.
If you want a simple option for a trip or a few weeks of cafe working, you can look at the pricing page at your own pace.
Frequently asked questions
Can a hacker on the same Wi-Fi read my messages if my VPN is on?
Not through the network. Once the VPN tunnel is up, the person sharing the Wi-Fi sees only encrypted data going to one VPN address. They cannot read the pages, messages or passwords inside it. The risk that remains is the connection before the tunnel starts and anything installed on your own device.
What can someone on public Wi-Fi still see when I use a VPN?
They can usually see that your device is on the network, its approximate manufacturer, the fact that you are sending encrypted traffic to a VPN server, and roughly how much data and when. They cannot see which sites or apps you use inside the tunnel.
Is a VPN enough to make public Wi-Fi safe?
No. It protects the path between your device and the VPN server. It does not stop fake login pages, malware, weak passwords, or joining a fake hotspot in the first place. Treat it as one layer next to updates, two-factor authentication and careful clicking.
Should I connect the VPN before or after joining the Wi-Fi?
You must join the Wi-Fi first, because the VPN needs a network to reach its server. Then connect the VPN straight away, before opening mail, banking or work apps. Some networks ask you to accept terms on a login page first; do that, then connect.
Do I still need a VPN if every site uses HTTPS?
HTTPS already hides page content from the Wi-Fi owner, so the gap a VPN fills is smaller than it used to be. A VPN still hides which sites you visit, protects apps that do not use HTTPS properly, and shields the many background connections your device makes.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

VPN Security
How to Stay Safer on Public Wi-Fi
Public Wi-Fi is not a disaster, but it is a network you do not control. Here are the real risks, the habits that matter most, and where a VPN fits in.
8 min read

VPN Security
HTTPS vs VPN: What Each One Protects
HTTPS secures the connection between your browser and a website. A VPN secures the path between your device and the VPN server. They overlap less than most people think.
9 min read

VPN Security
How to Use a VPN on Hotel Wi-Fi Safely
Hotel and travel Wi-Fi is shared with strangers and often hides behind a login page. This guide explains how to connect, when the VPN goes on and what to do when it will not connect.
9 min read

Privacy Guides
What a VPN Cannot Protect You From
A VPN secures the connection, not the person using it. This guide covers phishing, malware, ransomware, identity theft, data breaches, email privacy and other risks it cannot solve, and what to do about each.
9 min read

Privacy Guides
How to Recognize Phishing Websites
Phishing websites imitate real services to steal your login or card details. This guide shows the warning signs worth checking, a calm routine for suspicious links, and what to do if you entered details.
9 min read