Public Wi-Fi security: what to check before connecting

VPN doesn't work on hotel or café Wi-Fi: what to check

If your VPN won't connect on a public network, first complete the Wi-Fi sign-in page, then switch on the virtual private network (VPN).

If the internet works without the VPN, try a connection over TCP: the network may be blocking ports or UDP traffic, which WireGuard depends on.

Start by opening the Wi-Fi sign-in portal

Start by opening the Wi-Fi sign-in portalCheck the network namewith the staff and connect to it.Open the sign-in notification.On iPhone and Mac, use the built-insign-in window if it appears;otherwise open a browser.Complete the portal,check access to an ordinarywebsite, then switch on the VPN. Ifthe Block connections without VPNsetting is in the way, temporarilydisable it using the instructionsbelow.
A Wi-Fi icon doesn't yet mean internet access. In a hotel, café, airport or on a train, access may require a sign-in portal: a page for accepting terms or entering a code.

This order is recommended by the British National Cyber Security Centre (NCSC). If the browser warns you about a certificate, don't add an exception: check the portal address with the staff.

VPN doesn't work on hotel or café Wi-Fi: what to checkEnlarge image
VPN doesn't work on hotel or café Wi-Fi: what to check
Flughafen München GmbH (screenshot: Mattes, Wikimedia Commons) · Flughafen München FJS — WLAN Hotspot (Android) screenshot — 2022 Mattes — 13 October 2022 · Public domain (PD-ineligible)
SymptomCheckAction
Sites don't open even without the VPNIs the portal reachableSign in again; if that doesn't help, ask the staff
Internet drops out with the VPNDoes the same profile work over mobile dataIf it does, try a different transport on the Wi-Fi
VPN doesn't work on either networkAccount validity, settings, server availabilitySwitch servers, then contact your VPN's support

To test the mobile network, switch off Wi-Fi. Success with the same profile points to a problem with the guest connection, but doesn't prove blocking.

If Block connections without VPN stops you signing in

On Android, an always-on VPN maintains the connection, while the "Block connections without VPN" option forbids traffic outside the tunnel, including access to the portal. This is described in the Android documentation.

On a personal device, temporarily disable the block, and if necessary the always-on VPN too. Complete the portal, connect the VPN and restore your previous protective settings. During this window, limit yourself to signing in: background apps may also be reaching the internet directly.

If a work device's settings are enforced, contact your IT department or use an approved mobile connection.

If the internet works, check the VPN transport

A port block closes one specific connection point to a server; a UDP ban disrupts every connection that depends on it. Deep packet inspection (DPI) makes it possible to filter traffic by protocol signatures. A single connection error isn't enough for such a diagnosis.

UDP sends packets without built-in delivery confirmation, while TCP tracks their delivery and order. Transport Layer Security (TLS) encrypts the connection. Check your service's ready-made profiles:

ConnectionTransport or restrictionWhat to try
WireGuardUDP onlyAnother protocol over TCP
OpenVPNUDP by default, port 1194; supports TCPThe service's ready-made TCP profile
IPsec, a suite of protocols for securing network trafficSome networks restrict itA supported variant over TLS
VPN over TLSMay pass more reliably through firewallsAn available TCP/TLS profile
Hysteria2QUIC, a transport protocol over UDPIf UDP is banned, choose TCP
VLESS tcp/gRPC/xhttp at CitadelVPNOptions over TCP in the subscriptionChoose a compatible profile

WireGuard has no built-in TCP support and no obfuscation against DPI. If a network bans UDP outright, changing the port number won't help. Not every hotel blocks WireGuard.

OpenVPN supports TCP for networks where UDP is unavailable, but the server must support the mode. Change one setting at a time: first the transport, then the server. Even port 443 doesn't guarantee success.

If you need an option over TCP, I recommend CitadelVPN with VLESS tcp/gRPC/xhttp connections. Add the subscription link from your dashboard to a compatible client, such as Hiddify or v2rayNG, refresh the list and choose a profile. Buttons vary, so follow the VLESS instructions.

Hysteria2 also depends on UDP and won't help if UDP is blocked entirely. If there's no connection, tell support the type of network, the profile and the result of testing over mobile data. Success on a particular network isn't guaranteed.

If the VPN stopped working after a successful connection

A guest session may expire after a set time, even though the Wi-Fi icon remains. The captive portal architecture allows for this. Check the sign-in page and reconnect the VPN.

Example: in the evening the VPN worked; in the morning the Wi-Fi session had expired. Signing in again via the portal restores access without changing the protocol.

A rare cause of no internet on Apple devices relates to the private Wi-Fi address. It replaces the device's hardware address (MAC address) to limit tracking. First update the system, then decide with the administrator whether to disable the feature for this network.

When to switch to mobile data

If the venue's terms forbid VPNs or the available profiles won't connect, use the mobile network. For a laptop, you can share the internet from your phone, after checking your plan's data allowance and roaming terms.

Switch on the VPN on the laptop: tethering doesn't necessarily pass through the phone's tunnel.

Frequently asked questions

Can I switch off the VPN to sign in to the Wi-Fi?

Yes, temporarily, if the portal is otherwise unreachable. Prefer the system sign-in window and restore your protective settings as soon as the VPN is connected.

Why does Block connections without VPN cut off the internet entirely?

The tunnel isn't established, and other routes are forbidden. The switch itself doesn't restore the connection.

Is a VPN allowed in an airport or hotel?

That depends on the terms on the portal. If it's prohibited, use mobile data.

How to restore the connection

The connection order is: Wi-Fi, portal, internet check, then VPN. If sites are reachable but WireGuard doesn't work, test the VPN over the mobile network and try a TCP/TLS profile.

Restore the block on connections without VPN. If VPNs are banned or the attempt fails, use mobile data. Other measures are described in the guide on using public Wi-Fi safely.