Raspberry Pi Travel Router: Set Up Your Own WiFi Hotspot
You’re in a hotel room with a single network cable on the desk and three devices that all want to get online. Or you’re at a campsite and the site WiFi doesn’t quite reach your van. A Raspberry Pi travel router fixes both and gives you your own private WiFi: it takes the internet from a cable, someone else’s WiFi or a mobile connection and shares it as a hotspot with all your devices. Your devices only ever see your network, whichever hotel you’re in.
In short
There are two good ways to build a Raspberry Pi travel router: RaspAP with a web interface, or the built-in NetworkManager and a handful of commands. Pick one – the two don’t get along on the same Pi.
- RaspAP: configure everything in the browser, ad blocker included – best on a fresh SD card
- NetworkManager (nmcli): no extra software, runs alongside other services
- Pi-hole works with either option – with RaspAP, it takes over from the built-in ad blocker
Just need a simple hotspot at home, without the travel extras? Our guide to setting up a Raspberry Pi WiFi access point has you covered.
Which Approach Suits You?
| Option 1: RaspAP | Option 2: NetworkManager (nmcli) | |
|---|---|---|
| How you use it | web interface in your browser | terminal commands (over SSH) |
| Starting point | ready-made RaspAP image, or the installer on a fresh Raspberry Pi OS Lite | any current Raspberry Pi OS, nothing extra to install |
| What it changes | installs its own network services (hostapd, dnsmasq, dhcpcd) | uses NetworkManager, which is already running |
| Ad blocking | built-in “Ad Blocking”, or Pi-hole instead | Pi-hole plus one small config file |
| LTE dongle | dedicated page for PIN and APN | via ModemManager or as a network adapter |
| Best if … | you’d rather click than type and the Pi is only a router | the Pi does other jobs too |
Our own travel router is a Raspberry Pi 5 running option 2: a USB WiFi dongle provides the hotspot, and the built-in WiFi connects to a phone’s hotspot.
As of November 2026: RaspAP 3.6.0 on Raspberry Pi OS (Debian 13). In October, we tested the installation and how the services interact for both approaches with RaspAP 3.5.8 and Pi-hole 6.5, on a test system without a WiFi radio. Our steps for running Pi-hole on the RaspAP Pi follow RaspAP’s documentation.
Don’t fancy building one? A ready-made travel router like the GL.iNet GL-MT3000 (Beryl AX)* does the same out of the box, including VPN and help with hotel login pages. It costs more than a Pi, but works straight away.
Where Does the Internet Come From?
The Pi needs two network connections: one that brings the internet in and one for your hotspot. For the incoming side, there are three options:
- Option A – network cable: the hotel’s cable goes into the Pi’s Ethernet port and the built-in WiFi becomes the hotspot. The simplest and most reliable setup.
- Option B – someone else’s WiFi: the Pi joins the hotel WiFi or your phone’s hotspot. Some WiFi chips can act as a client and a hotspot at the same time, but it isn’t reliable: RaspAP lists that mode as experimental and recommends a second adapter instead. That’s why this option needs the second WiFi adapter.
- Option C – mobile data: an LTE dongle or a phone over USB provides the internet and the built-in WiFi becomes the hotspot.
What You Need
| Component | Details | Where to buy |
|---|---|---|
| Raspberry Pi | Pi 3B+, 4 or 5 – with built-in WiFi | Raspberry Pi 5* / Raspberry Pi 4* |
| microSD card | 8 GB is enough for the Lite system, 16 to 32 GB leaves headroom | SanDisk 32 GB* |
| Power | power supply at home, a power bank on the road (see the note below) | Raspberry Pi 27W power supply* / INIU 20,000 mAh power bank* |
| Second WiFi adapter (optional) | only needed for WiFi as the internet source; needs a Linux driver with AP mode | USB WiFi dongle with RT5370 chip* |
| LTE dongle (optional) | for mobile data as the internet source, SIM card not included | Huawei E3372* |
Power on the go: A Pi 5 wants 5 volts at 5 amps. If your power bank delivers less, the Pi 5 still runs, but according to the Raspberry Pi documentation it then limits USB devices to 600 mA – tight once an LTE dongle is plugged in. The Pi 3B+ and Pi 4 are fine with 3 amps. Our power supply guide helps you pick the right one.
About the WiFi adapter: With WiFi 6 dongles, it comes down to the chip: some Realtek chips still have no driver in the Raspberry Pi OS kernel, while others, such as the MediaTek MT7921AU, work out of the box and can run a hotspot too. Raspberry Pi OS supports the RT5370 chip out of the box, and it runs the hotspot in our travel router. It’s 2.4 GHz only, which is plenty for a few devices in a hotel room; 5 GHz is left to the built-in WiFi. With RaspAP, the dongle joins the hotel network by default and can then only reach 2.4 GHz networks; the RaspAP section below shows how to swap the roles. To check whether an adapter can host a hotspot, run this and look for “AP” in the list:
iw list | grep -A 10 'Supported interface modes'
Option 1: Travel Router with RaspAP
RaspAP turns the Pi into a WiFi router with a web interface. To do that, it installs its own network services: hostapd for the hotspot, dnsmasq for DHCP and DNS, dhcpcd for the fixed address and lighttpd for the interface. That’s why RaspAP belongs on a fresh SD card rather than on a Pi that already runs other network services.
Step 1: Flash the RaspAP Image or Run the Installer
RaspAP itself recommends its ready-made image: Raspberry Pi OS Lite with RaspAP preinstalled. The easiest way is to pick it straight from Raspberry Pi Imager, under “Other specific-purpose OS” → “RaspAP”. Alternatively, download it from the releases page (64-bit for the Pi 3B+, 4 and 5) and write it to the card in Imager using “Use custom”. The image has no preset Linux user, so set a username, password and SSH in Imager’s OS customisation. Connect the Pi with a network cable and boot it – the hotspot is up after the first start. The image sets the WiFi country to “US”; change it in step 2 under Hotspot → Advanced → Country Code if you’re elsewhere.
Alternatively, install RaspAP on a freshly flashed Raspberry Pi OS Lite. According to its list of compatible systems, RaspAP officially supports only the Lite edition of the current Raspberry Pi OS, not the desktop edition. Update the system, set the WiFi country and start the installer:
sudo apt update && sudo apt full-upgrade -y
sudo raspi-config nonint do_wifi_country GB
curl -sL https://install.raspap.com | bash
The installer asks these questions in turn, each defaulting to “Y”. Press Enter to accept or “n” to decline:
- Installation directory and “Complete installation with these values?” – Enter
- HttpOnly for session cookies – “Recommended”, Enter
- RaspAP control service – Enter, otherwise the hotspot won’t come back after a reboot
- TCP BBR – Enter (better congestion control)
- Ad blocking – Enter if you want the built-in ad blocker
- OpenVPN, RestAPI, WireGuard, VPN provider – “n” unless you need them
- “Reboot now?” – Enter. This only appears while a network cable is connected; otherwise reboot with
sudo reboot
To skip the questions, use this command. It gives the same answers but doesn’t reboot at the end, so sudo reboot follows as a second command:
curl -sL https://install.raspap.com | bash -s -- --yes --adblock 1 --openvpn 0 --restapi 0 --wireguard 0 --tcp-bbr 1
sudo reboot
Step 2: Log In and Configure the Hotspot
Once the Pi has started, a WiFi network called RaspAP appears. Connect with the password ChangeMe and open http://10.3.141.1 in your browser. If your laptop is on the same network as the Pi’s Ethernet port, the Pi’s IP address works too. The defaults:
| Setting | Default |
|---|---|
| WiFi name (SSID) | RaspAP |
| WiFi password | ChangeMe |
| Pi’s IP on the hotspot | 10.3.141.1 |
| DHCP range | 10.3.141.50 to 10.3.141.254 |
| Web interface login | admin / secret |
Change both passwords first – the defaults are public:
- Hotspot → Basic: WiFi name (SSID), wireless mode and channel
- Hotspot → Security: encryption (WPA2) and the WiFi password
- Click Save settings, then Restart hotspot to apply
- Admin password: click the user icon in the top right, then Authentication
You don’t have to pick an incoming connection: RaspAP routes traffic to the internet over whichever connection is active. With a network cable (option A), you’re done; with WiFi as the source, there’s one routing setting to add below.
Hotel WiFi as the Internet Source with RaspAP
Plug in the second WiFi adapter and open WiFi client. Pick the hotel WiFi or your phone’s hotspot and enter the password. According to the RaspAP FAQ, the built-in WiFi (wlan0) stays the hotspot, and the USB adapter joins the other network. At the next hotel, just pick the new network there.
For devices on the hotspot to get online, the RaspAP repeater guide says RaspAP needs one more routing setting. Under DHCP Server, select the hotspot interface (wlan0), turn off “Install a default route for this interface” and, at the bottom, set its metric higher than the dongle’s. You’ll find the dongle’s value in the routing table under Networking; the guide shows 304 there and uses 305 for the hotspot. Click Save settings and restart the hotspot.
If you want it the other way round, with the dongle running the hotspot and the built-in WiFi reaching 5 GHz hotel networks too, pick the USB adapter as the interface under Hotspot → Basic and click Save settings. The routing setting is then reversed: under DHCP Server, the dongle gets the disabled default route and the higher metric, while on wlan0 you turn the default route back on and reset the metric. Then use WiFi client to connect the built-in WiFi to the hotel network and restart the hotspot. Keep your laptop on the same wired network as the Pi while you do this, or you’ll lose access to the web interface when the roles switch.
Blocking Ads with RaspAP
If you said yes to “Ad blocking” during installation, you’ll find it under Ad Blocking. It uses block lists from StevenBlack and OISD – around 300,000 entries combined – and covers every device on the hotspot.
Prefer Pi-hole? Since RaspAP 3.6.0, Pi-hole can run on the same Pi: under DHCP Server → Advanced, turn on “Disable DNS server (DHCP only)” to switch off RaspAP’s own DNS server. RaspAP then only hands out addresses, and Pi-hole answers the DNS queries. The built-in ad blocker stops working once you do this. Leave DNS Server 2 empty under Server settings, or devices will bypass Pi-hole. Install Pi-hole only after this, and move its web interface to port 8080, since RaspAP already uses port 80; you’ll then find it at http://10.3.141.1:8080/admin. The RaspAP guide to Pi-hole walks through the details. If Pi-hole runs on another device, enter its address as DNS Server 1 under DHCP Server → Server settings and clear DNS Server 2.
Option 2: Travel Router with NetworkManager (nmcli)
Since the release based on Debian 12, Raspberry Pi OS manages networking with NetworkManager. It can run a hotspot on its own, DHCP server and internet sharing included. You don’t need hostapd, any dnsmasq configuration or entries in a dhcpcd.conf.
Start with Raspberry Pi OS (Lite or desktop), flashed with Raspberry Pi Imager with SSH enabled. Connect the Pi with a network cable while you set it up: if your SSH session runs over the Pi’s WiFi, it drops as soon as the built-in WiFi turns into the hotspot in step 2.
Step 1: Check the WiFi Country Code
Without a country code, the radio stays locked for regulatory reasons, and the hotspot either won’t start or stays invisible:
iw reg get
If it says “country 00”, set your code (GB for the UK, US for the United States):
sudo raspi-config nonint do_wifi_country GB
Step 2: Create the Hotspot
sudo nmcli device wifi hotspot ifname wlan0 con-name Hotspot ssid MyTravelNet password "MySecurePassword"
This creates a NetworkManager profile in access point mode: WPA2-encrypted (password of at least 8 characters), with its own DHCP service and internet sharing over whichever connection is active. The Pi is reachable on the hotspot at 10.42.0.1, and devices get addresses from 10.42.0.10 upwards. If you plan to use hotel WiFi as the internet source later (option B), create the hotspot on the USB adapter straight away: replace ifname wlan0 with its name, which nmcli device shows.
Step 3: Enable Auto-Start
sudo nmcli connection modify Hotspot connection.autoconnect yes connection.autoconnect-priority 100
Step 4: Band and Channel (Optional)
By default, the hotspot uses the 2.4 GHz band, and NetworkManager picks channel 1, 6, 11 or 13 based on the WiFi name. To set a fixed channel, use this:
sudo nmcli connection modify Hotspot 802-11-wireless.band bg 802-11-wireless.channel 6
sudo nmcli connection up Hotspot
For 5 GHz, use band a with a 5 GHz channel such as 36. The built-in WiFi on the Pi 3B+, 4 and 5 supports it; the RT5370 dongle doesn’t:
sudo nmcli connection modify Hotspot 802-11-wireless.band a 802-11-wireless.channel 36
sudo nmcli connection up Hotspot
Step 5: Check the Status
nmcli connection show --active
sudo nmcli device wifi show-password
The second command shows the WiFi name and password plus a QR code in the terminal (without sudo, the password is missing) – scan it with your phone camera and you’re connected. With a network cable as the internet source (option A), your travel router is now done.
Hotel WiFi as the Internet Source with nmcli
With a second adapter, you split the roles: one WiFi chip runs the hotspot, the other joins the outside network. nmcli device shows the USB adapter’s name. On a freshly flashed image it’s wlan1; with predictable interface names turned on, it’s wlx followed by the dongle’s hardware address. The built-in WiFi stays wlan0. With nmcli, you decide which chip does what. It makes sense to let the USB dongle run the hotspot and the built-in WiFi handle the outside connection, because the built-in WiFi can also reach 5 GHz hotel networks. That’s how our travel router runs.
If you created the hotspot on wlan0 in step 2, move it to the USB adapter with the first three commands below. The first one lists your interfaces; if your dongle isn’t called wlan1, put its name in the second command. If the hotspot is already on the dongle, you only need the last command: it connects the built-in WiFi to the hotel network, and NetworkManager names the connection after the network:
nmcli device
sudo nmcli connection modify Hotspot connection.interface-name wlan1
sudo nmcli connection up Hotspot
sudo nmcli device wifi connect "Hotel-WiFi" password "WiFi-password" ifname wlan0
If the Pi can’t find your phone’s hotspot even though it’s switched on, add hidden yes. Our iPhone hotspot needs it:
sudo nmcli device wifi connect "iPhone" password "hotspot-password" ifname wlan0 hidden yes
At the next hotel, connect your laptop to your own hotspot, SSH into 10.42.0.1 and run sudo nmcli device wifi connect … with the new network name and password. The hotspot stays the same, so your devices reconnect on their own.
Adding Pi-hole
Pi-hole blocks ads for every device on the hotspot. Install it as described in our Pi-hole setup guide:
curl -sSL https://install.pi-hole.net | bash
The installer asks for the interface (pick the hotspot interface, i.e. wlan0 or your USB adapter’s name), upstream DNS, block lists, query logging and privacy level. At the end it shows a randomly generated password for the web interface; change it with sudo pihole setpassword.
That alone isn’t enough: NetworkManager’s hotspot brings its own DNS service on port 53, so Pi-hole can’t claim the port. Pi-hole reports itself as active but doesn’t answer a single query. The fix is to turn off NetworkManager’s DNS part, keep its DHCP, and hand out Pi-hole as the DNS server instead:
sudo tee /etc/NetworkManager/dnsmasq-shared.d/pihole.conf <<'EOF'
port=0
dhcp-option=option:dns-server,10.42.0.1
EOF
sudo nmcli connection up Hotspot
sudo systemctl restart pihole-FTL
Then reconnect a device to the hotspot: it gets 10.42.0.1 as its DNS server, ad domains are blocked and everything else resolves normally. The file stays in place across reboots. The Pi-hole web interface is at http://10.42.0.1/admin.
By default, Pi-hole answers every device on a directly connected network – in a hotel, that includes the network on the Ethernet port. If you don’t want that, restrict it to the hotspot interface (here wlan0, or your USB hotspot’s name), as described in the Pi-hole documentation:
sudo pihole-FTL --config dns.interface wlan0
sudo pihole-FTL --config dns.listeningMode SINGLE
sudo systemctl restart pihole-FTL
More block lists: Add extra lists in the Pi-hole dashboard under Group Management → Lists. The Firebog page collects a good selection. It isn’t a block list itself but shows the addresses of several lists: copy them, paste them into “Address”, separated by spaces, and click Add blocklist.
Then have Pi-hole download the lists with this command (or via Tools → Update Gravity):
sudo pihole -g
For how Pi-hole compares with AdGuard Home, see our DNS blocker comparison.
Mobile Data as the Internet Source (Option C)
LTE Dongle
LTE dongles come in two flavours, and which one you have decides how you get rid of the SIM PIN:
- Network adapter mode (HiLink): the dongle has its own little router built in and shows up on the Pi as a network card (
eth1orusb0). That’s how the Huawei E3372* is usually sold. You set the PIN, APN and data limit in its web interface athttp://192.168.8.1; nothing else to do on the Pi. - Modem mode: the dongle shows up as a modem managed by ModemManager. Only then do the commands below apply.
Run this before and after plugging the dongle in. A new eth1 or usb0 means network adapter mode; wwan0 means modem mode. If nothing new appears, the dongle is usually still in storage mode (see Troubleshooting):
ip -br link
With RaspAP, set the PIN and APN under Networking, Mobile Data tab. With nmcli, disable the PIN on dongles in modem mode like this (the options are listed in the mmcli documentation). The second line shows the modem number, the third the SIM number – both are usually 0:
sudo apt install modemmanager -y
mmcli -L
mmcli -m 0 | grep -i sim
sudo mmcli -i 0 --pin=1234 --disable-pin
Then create the mobile connection. Replace internet with your provider’s APN, which you’ll find in your plan’s documentation:
sudo nmcli connection add type gsm ifname '*' con-name LTE apn internet
For more on mobile dongles, see our guide to using a USB mobile dongle with the Raspberry Pi.
Your Phone as the Internet Source
Connect an Android phone with a USB cable and turn on USB tethering in its settings (usually under Network → Hotspot & tethering). A new interface appears on the Pi, usually usb0, though some phones show up with an Ethernet name such as eth1. NetworkManager connects it automatically, and RaspAP uses it as the internet source on its own too. In the ping command, use whichever name ip -br link shows:
ip -br link
nmcli device
ping -c 4 -I usb0 8.8.8.8
USB tethering with an iPhone didn’t work for us. The easier route is the iPhone’s WiFi hotspot as the internet source – option B with a second WiFi adapter, which is how our travel router runs.
| Mobile option | Pros | Cons |
|---|---|---|
| LTE dongle | its own SIM, runs permanently without a phone | needs its own plan and power from the USB port |
| Smartphone | no extra hardware, uses your existing plan | phone has to stay nearby, battery drains faster |
Roaming and Travel eSIMs
Within the EU, plus Norway, Iceland, Liechtenstein, Ukraine and Moldova, “Roam like at Home” applies to EU SIM cards: you get your domestic rates. The EU roaming regulation runs until 2032 and lets providers set a fair-use limit for usage beyond occasional travel. Elsewhere, roaming can get expensive, and a travel eSIM on your phone is one way round it – Airalo, Holafly and Yesim are examples. The phone provides the connection, the Pi shares it.
On the Road: Hotel Tips
Login pages (captive portal): many hotel networks want you to sign in through a browser first. Connect to your hotspot and open http://neverssl.com on one of your devices; the login page usually appears, and the hotel unlocks the Pi. If that fails because the hotel only allows registered devices, the GL.iNet guide suggests copying the hardware (MAC) address of the phone you logged in with – you’ll find it in the phone’s WiFi details. With the nmcli approach, set it for the hotel connection like this:
sudo nmcli connection modify "Hotel-WiFi" 802-11-wireless.cloned-mac-address AA:BB:CC:DD:EE:FF
sudo nmcli connection up "Hotel-WiFi"
In RaspAP, go to Networking → Devices, enter the address in the MAC field of the WiFi adapter that connects to the hotel and click Update (RaspAP docs).
If that doesn’t help either, ask at reception for a wired connection.
- Channel: if the 2.4 GHz band is crowded at the hotel, another channel (option 2, step 4; with RaspAP under Hotspot → Basic) or 5 GHz gives you more speed.
- How many devices? The limit usually comes from the WiFi firmware, not the processor. See the FAQ below for details – it’s plenty for a laptop, phones and a tablet.
- Power: with a Pi 5 on a power bank, plug the LTE dongle into a powered USB hub, or use option A or B.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| WiFi network doesn’t appear | hotspot connection inactive (nmcli) or hostapd stopped (RaspAP) | nmcli connection show --active, then sudo nmcli connection up Hotspot; with RaspAP, Hotspot → Restart hotspot |
| Hotspot won’t start, radio stays silent | WiFi country not set (iw reg get shows country 00) | sudo raspi-config nonint do_wifi_country GB, then reboot |
| Second adapter can’t run a hotspot | driver without AP mode, or no Linux driver at all | check iw list and use an adapter with a supported chip such as the RT5370 |
| Connected but no internet | uplink offline or hotel login page not confirmed | check nmcli device and open http://neverssl.com; with RaspAP, cat /proc/sys/net/ipv4/ip_forward must return 1, and with WiFi as the source, check the routing setting under DHCP Server (see the RaspAP hotel WiFi section) |
| Devices don’t get an IP address | DHCP service stuck | sudo nmcli connection up Hotspot; with RaspAP, DHCP Server → Restart dnsmasq |
| Pi-hole active but nothing resolves | port 53 taken by another dnsmasq | nmcli: add the config file from option 2; RaspAP: turn off the DNS server under DHCP Server → Advanced, then restart dnsmasq first and Pi-hole after it |
| Pi-hole blocks too much | block lists too aggressive | under Group Management → Domains, allow the domain with “Add to allowed domains” |
| RaspAP interface unreachable | lighttpd stopped | sudo systemctl restart lighttpd |
| LTE dongle shows neither eth1/usb0 nor wwan0 | dongle stuck in storage mode | usb-modeswitch already ships with Raspberry Pi OS: unplug the dongle, wait a few seconds and plug it back in; otherwise try a powered USB hub |
Raspberry Pi Hotspot FAQ
The Pi 4 and Pi 5 have plenty of power and dual-band WiFi (2.4 and 5 GHz). A Pi 3B+ is fine for a few devices. On a power bank, the Pi 4 is less fussy, because on a 3 A supply the Pi 5 limits USB devices to 600 mA.
Yes. Enable SSH in Raspberry Pi Imager and set a username and password, then do everything from your laptop. The RaspAP image doesn’t even need SSH – the whole setup happens in the browser.
Yes, officially with the Lite edition. RaspAP installs its own network services (hostapd, dnsmasq, dhcpcd) alongside NetworkManager, so it belongs on a fresh card, and you shouldn’t add an nmcli hotspot on top.
Not for the nmcli approach – NetworkManager handles the hotspot, DHCP and internet sharing itself. RaspAP, on the other hand, uses hostapd and dnsmasq and installs both automatically.
Yes, since RaspAP 3.6.0: turn off RaspAP’s own DNS server under DHCP Server → Advanced, then install Pi-hole and move its web interface to port 8080 (see “Blocking Ads with RaspAP” for details). Pi-hole then answers the DNS queries. RaspAP’s built-in ad blocker stops working in that case. With the nmcli approach, Pi-hole works after adding one small config file.
The WiFi firmware is the main limit. RaspAP mentions up to 19 devices on a Pi 3B, and fewer on newer models. That covers a family’s devices in a hotel room.
Dongles in network adapter mode (HiLink), like the Huawei E3372, do: they show up as a network card, and you set the PIN and APN in their web interface. Dongles in modem mode need ModemManager.
Yes. On Android, use USB tethering and the Pi gets a new network interface, usually usb0. With an iPhone, the WiFi hotspot is the easier route, which needs a second WiFi adapter on the Pi.
