Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Raspberry Pi Travel Router: Stop Trusting Hotel Wi-Fi

· 6 min read · Home Networking

In this article
  1. Why Hotel Wi-Fi Is a Risk
  2. How a Raspberry Pi Travel Router Works
  3. What You Need to Build One
  4. Setting Up the Software
  5. Choosing the Right Pi and Adapters
  6. Common Problems and Fixes
  7. Costs and Alternatives
  8. Is It Worth It?
  9. Frequently Asked Questions

Yes, building a Raspberry Pi travel router is a practical way to stop trusting hotel Wi-Fi directly with your devices. It creates a private, encrypted network between your laptop or phone and the Pi, which then connects to the hotel's internet, so your data is protected from other guests on the same network. This guide explains how it works, what you need, and the trade-offs involved.

Why Hotel Wi-Fi Is a Risk

Hotel networks are shared by hundreds of strangers, and they typically use a single password posted in the lobby. This means anyone in the building can join the same network and, with readily available tools, capture unencrypted traffic or launch attacks like ARP spoofing to intercept data meant for your device. Even when a hotel uses WPA2 encryption, all guests share the same pre-shared key, so the encryption does not protect one guest from another. A travel router addresses this by placing your devices behind your own network, so the hotel only sees the router's traffic, not your phone or laptop directly.

How a Raspberry Pi Travel Router Works

The Pi acts as a middleman. It connects to the hotel's Wi-Fi as a client (using its built-in wireless chip or a USB adapter), and simultaneously creates its own Wi-Fi access point (AP) that your devices join. Your phone connects to the Pi's network, and the Pi forwards traffic to the hotel network. To protect your data, you run a VPN client on the Pi, so all traffic from your devices is encrypted before it leaves the Pi. The hotel sees only a single encrypted stream from the Pi's MAC address, and your devices never directly interact with the hotel's network.

What You Need to Build One

  • A Raspberry Pi (Model 3, 4, or Zero 2 W are common choices; older models work but are slower)
  • A microSD card (8 GB or larger, Class 10 recommended)
  • A power supply (5V USB-C for Pi 4/5, micro-USB for older models)
  • An Ethernet adapter (optional, but useful for wired hotel connections)
  • A USB Wi-Fi adapter (only if your Pi model lacks built-in wireless or you need a second radio)
  • A VPN subscription (optional but strongly recommended for encryption)

You will also need a computer to flash the operating system onto the SD card. Raspberry Pi OS Lite (without a desktop) is sufficient and keeps the system lightweight.

Setting Up the Software

The most straightforward approach is to use a pre-built travel router image, such as those from the Pi-hole community or dedicated projects like RaspAP. RaspAP is a popular open-source tool that turns a Raspberry Pi into a wireless router with a web interface. After flashing the image, you configure it to connect to the hotel's Wi-Fi and create your own AP. If you want a VPN, you install OpenVPN or WireGuard on the Pi and route all traffic through it. For a more manual setup, you can configure hostapd (for the access point), dnsmasq (for DHCP), and wpa_supplicant (for the hotel connection) yourself, but this requires more Linux knowledge.

Choosing the Right Pi and Adapters

The Raspberry Pi 4 is a solid choice because it has dual-band Wi-Fi (2.4 and 5 GHz) and enough processing power to handle VPN encryption. The Pi Zero 2 W is cheaper and smaller, but its single-core performance may limit VPN speed. If you need to connect to a hotel that uses a captive portal (the login page that appears when you open a browser), you will need to complete that login from the Pi's browser or via a command-line tool like curl with the appropriate cookies. Some travel router images include a captive portal helper that automates this. For hotel networks that require a wired connection, you can use a USB Ethernet adapter and configure the Pi to use it as the WAN interface.

Common Problems and Fixes

  • Captive portals: Many hotels require you to accept terms or enter a room number. You can log in by connecting a laptop to the Pi's AP, then using the laptop's browser to complete the hotel login. The Pi will remember the session.
  • Weak signal: If the Pi's Wi-Fi cannot reach the hotel's router, use a USB Wi-Fi adapter with an external antenna or position the Pi near a window.
  • VPN slowdown: VPN encryption is CPU-intensive. On a Pi 4, expect speeds of 50-100 Mbps, which is fine for most browsing but may bottleneck large downloads.
  • Power issues: The Pi needs a stable power supply. Some hotel USB ports provide insufficient current; use a dedicated power adapter.

Costs and Alternatives

A Raspberry Pi travel router costs roughly $35-75 for the board, plus a few dollars for an SD card and power supply. You may already have these parts. If you do not want to build one, commercial travel routers like the GL.iNet GL-AR150 or TP-Link TL-WR902AC cost $20-40 and come with similar features out of the box. However, they often have less control and may not support custom VPN firmware as easily. Another alternative is to use your smartphone's hotspot feature, but that drains battery and may incur data charges. A Pi router gives you more flexibility and can also serve as a Pi-hole ad blocker or a network-wide ad blocker when you are at home.

Is It Worth It?

If you frequently travel for work and handle sensitive data, a Pi travel router is a worthwhile investment. It adds a layer of security and privacy that a hotel network cannot provide. However, if you only travel occasionally and use HTTPS websites, the risk may be lower, though still present. The main benefit is that you can use a VPN on all your devices without installing VPN software on each one. The main drawback is the setup complexity and the need to carry extra hardware. For most users, a commercial travel router with a VPN client is easier, but building your own is a great learning project and gives you full control.

Frequently Asked Questions

Can I use a Raspberry Pi Zero for this?

Yes, the Pi Zero 2 W works, but VPN speeds will be lower due to its single-core CPU. It is fine for light browsing and email, but not for streaming or large file transfers. The Pi Zero 1 is too slow for VPN use.

Do I need a VPN for a travel router?

Not strictly, but it is the main reason to build one. Without a VPN, the router only isolates your devices from the hotel network, but the traffic between the Pi and the hotel is still unencrypted. A VPN encrypts that leg, protecting you from snooping on the hotel network.

How do I handle hotel login pages?

Connect a laptop to the Pi's Wi-Fi, open a browser, and complete the hotel's login page. The Pi's connection to the hotel will be authenticated, and your devices will then have internet access through the Pi.

Can I use a travel router with an Ethernet-only hotel room?

Yes, you can use a USB Ethernet adapter on the Pi and configure it as the WAN interface. The Pi will connect to the hotel's wired network and still broadcast its own Wi-Fi.

Is it legal to use a travel router in hotels?

Generally, yes, as long as you are not violating the hotel's terms of service. Some hotels may prohibit routers, but this is rare. It is always best to check with the hotel if you are unsure.