How to Connect to a VPN on Public Wi-Fi
Join a public network, get past the login page, and switch your VPN on in the right order. Includes fixes for captive portals that stop the VPN from connecting.
5 min readUpdated Oct 15, 2026By XPASS Editorial Team

Public Wi-Fi in cafes, hotels, airports and co-working spaces is convenient, but you share the network with strangers and you do not control the router. A VPN adds a protected tunnel between your device and the VPN service, which is why many people switch it on whenever they leave their home or office network. The catch is that public networks often behave differently from home Wi-Fi, and the order in which you do things matters.
This guide walks you through joining a public network and connecting your VPN in the right sequence, then helps you fix the most common problems. It assumes you already have an active pass and know which app or connection profile to use. If you are not sure, open your My Pass page, where the setup instructions and supported connection methods are listed.
Before you leave home
A few minutes of preparation saves frustration later, because some networks are slow to load and it is awkward to troubleshoot at a crowded airport gate.
- Sign in to your My Pass page and check that your pass has not expired. Validity starts when the VPN account was created, not when you first connected.
- Make sure the app or connection profile listed there is installed and that you have your login details available. They appear only on your My Pass page, so sign in with the link in your email before you leave home.
- Test the VPN once on your home network or mobile data so you know it works before you rely on it.
- If your pass is close to ending, renew early. Renewing adds the new days on top of the days you have left, so nothing is lost.

Step-by-step: connecting on a public network
- Turn on Wi-Fi and pick the right network. Choose the exact name given by the venue, ideally confirmed by staff or a printed sign. Fake networks with similar names are a known trick, so be careful with names that look slightly different.
- Wait for the login page. Many venues use a "captive portal", a page that asks you to accept terms, enter a room number, or type a code. It may open by itself. If it does not, open your browser and visit a plain web address that starts with
http://so the page can redirect you. - Complete the sign-in before touching the VPN. Until you finish, the network may block everything else, including VPN traffic. This is the most common reason a VPN seems "broken" on public Wi-Fi.
- Confirm the internet works. Load any ordinary page. If it loads, the network is ready.
- Turn on the VPN. Open the app or connection profile from your My Pass page and connect. Operating system menus differ by version and manufacturer, so follow the instructions shown for your device.
- Verify the connection. Follow our guide on how to check if your VPN is working. In short, compare the public IP address an IP-lookup site shows before and after connecting. It should change.
If the VPN will not connect on public Wi-Fi
Work through these checks from the most to the least likely cause.
- The portal is not finished. Open a browser, look for a sign-in or terms page, and complete it. Some portals time out and need you to sign in again every hour or so.
- The pass has expired or the login is wrong. Check your My Pass page for the end date and re-enter the credentials carefully.
- Poor signal. Move closer to the access point. A weak connection causes timeouts that look like VPN failures.
- Try the connection again. Turn the VPN off, turn Wi-Fi off and on, then reconnect in the order above.
- Switch the connection method. If your My Pass page lists more than one connection method, try another. Some networks handle one type of traffic better than another.
- Test another network. Switch to mobile data. If the VPN connects there, the public network is probably restricting VPN traffic, and you may need to use a different network.
- Restart the device. It clears stale network settings that are surprisingly common after switching between several networks in one day.
If you are stuck after these steps, our guides on reconnecting when the VPN disconnects and improving connection stability cover more cases.
A simple example
Imagine you land at an airport and join the free Wi-Fi. Your phone says it is connected, but pages do not load, and the VPN shows an error. You open the browser, visit a plain http:// address, and a terms page appears. After you tap accept, pages load normally. You then connect the VPN, and it succeeds on the first attempt. The VPN was never the problem; the portal was.

Limits and what to watch for
- A VPN protects traffic between your device and the VPN service. It does not stop phishing, malicious downloads or an infected device. Read more in what a VPN cannot protect you from.
- Some venues restrict VPN use. If a network will not allow it, use another network rather than trying to work around the venue's rules.
- Avoid sensitive activity such as banking on a network you do not trust until you have confirmed the VPN is connected.
- Keep your operating system and apps updated, and consider the wider habits described in how to stay safer on public Wi-Fi.
When to contact support
Contact us through account support or the contact page if the VPN fails on several different networks, your login is rejected although your pass is active, or you cannot find setup instructions on your My Pass page. Tell us the device, the operating system version, the network type, and the exact message you see. Do not send your password.
Summary
Join the network, finish the login page, confirm the internet works, then connect the VPN and verify it. If something fails, check the portal first, then your pass, signal, connection method and a different network. For more on what a VPN does on shared networks, see our public Wi-Fi page or browse the Help Center.
Frequently asked questions
Should I turn the VPN on before or after joining public Wi-Fi?
Join the Wi-Fi first, complete any login page, and then turn the VPN on. Many public networks will not let the VPN connect until you have accepted their terms or entered a code.
Why does the VPN not connect at a hotel or airport?
Most often the network is still waiting for you to complete its login or terms page. Open a normal web page, finish the sign-in, then try the VPN again.
Does a VPN make public Wi-Fi completely safe?
No. It protects the traffic between your device and the VPN, but it does not stop phishing, malware or unsafe behaviour on your device.
What if the Wi-Fi blocks VPN connections?
Some networks restrict VPN traffic. Try another network, such as your mobile data, and contact support if the problem continues elsewhere.
References
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

Troubleshooting
How to Check If Your VPN Is Working
A VPN can show as connected and still not be doing its job. Use these checks to confirm your traffic is really going through the VPN.
5 min read

Troubleshooting
How to Reconnect When the VPN Disconnects
VPN connections drop sometimes. Here is a calm, ordered routine for getting back online safely and working out why it happened.
5 min read