Travel

Train Wi-Fi and a VPN: coverage gaps, handovers and sign-in pages

Onboard train Wi-Fi is usually a router on the train that reaches the internet over the same mobile networks a phone uses, often through antennas on the roof. Every gap in coverage along the line is therefore a gap in the Wi-Fi, and the passengers in every carriage share whatever capacity the router can find.

This page explains what that design means for a VPN: how the tunnel behaves through railway tunnels, cuttings and handovers between masts, how the WrapVPN apps for iPhone, iPad, Android and Windows react to a lost connection, when tethering to your own phone is the better choice, and how to choose a server location for a journey. Advice that applies to every shared network is in our public Wi-Fi safety guide.

Common networks
Onboard train Wi-Fi · Station Wi-Fi · Mobile data along the line

Why onboard Wi-Fi drops in cuttings, railway tunnels and rural stretches

The router on a train is a mobile-network client, much like a phone with better antennas. When the line enters a railway tunnel, runs through a deep cutting or crosses country with few masts, the router can lose its mobile connection while the Wi-Fi in the carriage stays up with nothing behind it. Devices remain joined to the onboard network and keep their addresses, so a drop shows up as a stalled page rather than a lost network.

Metal carriage bodies, and windows with metallic coatings, weaken mobile signals inside many trains, which is why the router's antennas are often mounted outside. The same shielding means that a phone's own mobile data can be weaker inside the carriage than the onboard Wi-Fi on the same stretch.

On a line with frequent railway tunnels, gaps are part of every journey. Reading, messaging and pages that load in small pieces recover when the train emerges, while a large upload or a video call needs a continuous connection and is exposed to every gap.

  • A page that stalls in a railway tunnel is usually waiting for the mobile link, and it can continue once coverage returns.
  • Start large uploads at a station stop or on an open stretch, not shortly before a section with railway tunnels.

Handovers between masts at speed, and a changing train address

A moving train passes from one mast's coverage to the next many times an hour, and the faster it travels, the more often that happens. Each handover is normally brief, but a router that holds on to a fading mast, or moves to a congested one, can interrupt traffic for longer than the switch itself takes.

Some onboard routers hold more than one mobile connection, sometimes with different operators, and move traffic between them as coverage changes. When that happens, the public address the train presents to the internet can change partway through a journey, and connections that were open at the time can break.

With WrapVPN connected, websites see the exit server's address instead. Every user of that exit shares it, and it stays the same for as long as you stay connected to that exit, whatever happens to the train's own address. To websites, your connections come from the exit server, so a change of the train's address does not by itself break them; only the tunnel between the device and the exit server has to follow the change, and WireGuard is designed to do that.

How the WrapVPN tunnel behaves through drops and network changes

A WireGuard tunnel follows a change of address without a new connection: the exit server records the new address from the first authenticated packet that arrives from it, as our WireGuard guide explains. Under the configuration WrapVPN issues, the iPhone, iPad and Android apps send a keepalive packet after 25 seconds without other traffic, so after the train's address changes, the exit server learns the new one within about 25 seconds, without waiting for you to open a page.

In a railway tunnel the device normally stays joined to the onboard Wi-Fi, so it still has a network even though no packets get through. The list below sets out how the iPhone, iPad, Android and Windows apps react to a change of network and to a longer loss. 'When internet is lost' on Android and Windows applies only when the device has no network connection at all for 30 seconds, for example when a laptop drops off the onboard Wi-Fi. Set it to 'Always keep connected' if you do not want to be asked each time; with 'Always disconnect', the tunnel ends, and traffic can then leave outside it when the network comes back.

On Windows, a running tunnel also blocks traffic outside it, so while the tunnel waits through a gap, the laptop's traffic is blocked rather than sent outside the tunnel. The block lifts when you disconnect or pause, and briefly while the app changes server location or restarts a stalled tunnel.

  • iPhone and iPad: moving between networks does not end the connection, and if every network is lost, the app suspends the WireGuard connection and resumes it when a network returns.
  • Android: the tunnel stays up across a change of network. While the device still has a network, as on the onboard Wi-Fi in a railway tunnel, the app posts 'Server not responding' once no handshake has succeeded for more than 210 seconds, then restarts the connection and keeps retrying. After 30 seconds with no network at all, it applies 'When internet is lost'; with 'Ask me each time', the default, it posts a notification offering 'Keep connected' or 'Disconnect'.
  • Windows: while the laptop still has a network, as on the onboard Wi-Fi in a railway tunnel, a 'Connection lost' notification appears once no handshake has succeeded for more than 210 seconds, and the app keeps reconnecting. After 30 seconds with no network at all, with 'Ask me each time' (the default), a banner offers 'Keep connected' and 'Disconnect'.

Limit

WrapVPN has no kill switch. On iPhone, iPad, Mac and Android, the app does not hold traffic back while the tunnel is stopped, for example after a disconnect, during a pause or when a free session's hour ends.

Sign-in pages on each train, and station Wi-Fi as a separate network

Many onboard services show a sign-in page before they forward any traffic, and the registration usually lasts for one journey. Changing trains can mean a new network with its own page, and on some services the page returns partway through a journey.

A page that has not been completed blocks the tunnel, and a running tunnel can block the page. Join the onboard network with the VPN off, complete the page, load an ordinary site to confirm that traffic flows, and then connect.

On iPhone and iPad with Auto-Connect on, WrapVPN connects when the device joins the train's Wi-Fi. Pause it for 5, 15 or 30 minutes by pressing and holding the switch, complete the page, and the tunnel returns when the pause ends. Disconnecting leaves Auto-Connect's Wi-Fi rule in place, so iOS can start the tunnel again; turn Auto-Connect off first if you want to stay disconnected.

On Android and Windows, a tunnel still running from the previous train can stand between the device and the new page in the same way, and on Windows the firewall rules of a running tunnel block the page's traffic outside it. Disconnect or pause, complete the page, then connect again.

Station Wi-Fi is a different network again, with its own name, often its own sign-in page and usually a fixed connection to the internet rather than a mobile one. A device that has joined it before can switch to it while the train stands at a platform, which can put the tunnel behind a page that has not been completed. Forget station networks after use, or turn off automatic joining for them, so that the device stays on the network you chose.

Capacity shared by a whole train

Every passenger on the onboard network shares the few mobile connections the router holds, and those connections share each mast with everyone else nearby. A full train at a busy time of day divides that capacity among more devices, and each device's share falls accordingly.

Some onboard services also cap the data each device may use in a journey, or slow a device that uses more than a set amount. Those limits follow the device whether or not its traffic is in a tunnel, and the tunnel adds a small overhead of its own to every packet.

Postpone photo and file backups until you reach a fixed connection, and leave large downloads for the station or the hotel.

Tethering to your own phone instead of the onboard Wi-Fi

A hotspot from your own phone avoids the onboard sign-in page and the train's shared capacity, and on some stretches your own operator covers the line better than the train's. It uses your data allowance and the phone's battery, and inside the carriage the phone's signal can be weaker than the signal reaching the roof antennas.

A laptop on the phone's hotspot sends its traffic through the phone's mobile connection, where the operator can see which hosts it contacts. A VPN on the phone is set up for the phone's own traffic and should not be relied on to cover the laptop. Run WrapVPN on the laptop as well, so that the operator sees an encrypted stream from each device instead.

One account covers both, since no plan has a device limit. On the free plan, if the phone connected first, the laptop joins the hour already running rather than taking another of the week's three sessions.

Choosing a server location near the route, not the destination

The onboard router's traffic enters the internet through the mobile networks along the line, so the nearest exit server is usually the one closest to where the train is, not to where it is going. Some lines stay close to one exit from end to end: Gothenburg is 400 km from Stockholm and Malmö 510 km, Manchester is 260 km from London and Edinburgh 530 km, and Seville and Barcelona are 390 km and 510 km from Madrid. Each of those distances gives a round-trip floor of about 5 ms or less.

On a journey that crosses a border, the nearest exit can change on the way. A journey from Madrid to Paris starts beside the Madrid exit, but Paris is 1,050 km from Madrid and 340 km from London. Choose the exit for the stretch where you will use the connection most. If you change, do it at a station stop rather than before a railway tunnel, because changing location replaces the connection and needs a working network to complete.

After a border, the train's router may roam on the next country's networks, and roaming data is commonly routed back to the home operator, so the internet can still see the train in the country it left. Measure rather than assume: with the tunnel disconnected, reopen the app on a phone or tablet or use 'Refresh' on Windows, and compare the exits on either side of the border.

Common uses

A daily commute through railway tunnels

The same line every day means the same gaps in the same places. Keep one server location near the line and leave the tunnel connected; it picks up again after each gap without any action. For travel every working day, the monthly plan at $3.99 costs less than paying week by week, and it renews until you cancel it in your store's subscription settings.

A long journey across a border

A cross-border journey passes two sets of masts and possibly a change to roaming. Choose the exit for the stretch you will use most, change only at a station stop if you must, and measure again after the border rather than assuming which exit is now nearer.

Several hours of work on a laptop

Hours of laptop work meet the train's sign-in page, its shared capacity and every gap on the line. Tethering to your phone avoids the first two; whichever connection you use, run WrapVPN on the laptop itself.

How to set up WrapVPN

  1. 1

    Decide what happens when the connection drops

    On Android and Windows, set 'When internet is lost' in Settings to 'Always keep connected', so that the tunnel waits without asking if the device loses its network altogether, for example when a laptop drops off the onboard Wi-Fi. A railway tunnel alone does not trigger the setting, because the device normally stays on the onboard Wi-Fi.

  2. 2

    Complete the onboard sign-in page first

    Join the train's Wi-Fi with the VPN off, or paused on an iPhone or iPad with Auto-Connect on, complete the page and load an ordinary site before you connect.

  3. 3

    Measure on the train and pick an exit near the line

    With the tunnel disconnected, reopen the app on a phone or tablet or use 'Refresh' on Windows so that the figures reflect the train's connection, then choose a location close to the route rather than to your destination.

  4. 4

    Keep large transfers for a fixed connection

    Pause automatic backups for the journey and leave large uploads for a station or your destination, where a railway tunnel cannot interrupt them.

Plans and prices

Weekly and monthly plans renew automatically until cancelled, and there is no annual commitment. You can cancel at any time in your App Store or Google Play subscription settings.

$1.99per week

$3.99per month

There is no annual or multi-year plan.

The monthly plan may include a 7-day free trial for eligible new subscribers.

See all plans

Common questions

Why does my VPN stop working on the train?

Usually because the train has lost its own mobile connection in a railway tunnel, a cutting or a stretch with few masts, or because the onboard sign-in page has expired. The tunnel waits through a gap and resumes when coverage returns. If pages still do not load once the train is in the open, disconnect or pause, open an ordinary web page and complete the sign-in page if it appears.

Do I need to reconnect the VPN after every railway tunnel?

No. The tunnel continues once coverage returns, and the exit server learns any new address for the train from the next packet your device sends. On Android and Windows, a gap long enough that no handshake succeeds for more than 210 seconds makes the app reconnect by itself.

Is the train Wi-Fi or my phone's hotspot better for a laptop?

It depends on the line. The hotspot avoids the sign-in page and the train's shared capacity, while the roof antennas can reach masts that a phone inside the carriage cannot. Either way, run WrapVPN on the laptop itself, because a VPN on the phone is set up for the phone's own traffic.

Which server location should I use on a train?

One near the line rather than near your destination, because the train's traffic enters the internet through the mobile networks it passes. Measure on the train with the VPN disconnected, keep one location for the stretch you will use most, and change only at a station stop.

Why will the train's sign-in page not load?

Often because a running tunnel stands between your device and the page, and on Windows the firewall rules that come with a running tunnel block traffic outside it. Disconnect or pause first. On iPhone and iPad with Auto-Connect on, use a pause, because disconnecting leaves the Wi-Fi rule that can start the tunnel again.

Is station Wi-Fi the same network as the train's?

No. Station Wi-Fi is a separate network with its own name and often its own sign-in page, usually on a fixed connection. A device that has joined it before can switch to it at a platform, so forget it after use to keep the device on the network you chose.

Download WrapVPN

One account works on your phone, tablet and computer, with no device limit on any plan. Every server location is available on every plan, including the free plan.