Answers

How to reach a Raspberry Pi behind CGNAT or a mobile ISP's NAT

Port forwarding can't work behind carrier-grade NAT. Make the Pi connect out instead: a reverse tunnel, a mesh VPN, or an agent like Fieldhand.

Asked on Raspberry Pi Forums, October 2020: “Any way to reach an RPi sitting behind an ISP NAT router?”

Short answer

You can't connect in: behind carrier-grade NAT the Pi has no address the internet can reach, and port forwarding on your router doesn't help because the carrier's NAT is upstream of it. Have the Pi connect out to something you can reach, and come back through that connection.

Inbound is blocked by the carrier's NAT; the Pi's outbound connection carries your shell back.Raspberry Pino public IPCarrier NATCGNATFieldhand relayrelay.fieldhand.devYoulaptop or phoneoutbound :443same connectionbrowser or ssh
Inbound is blocked by the carrier's NAT; the Pi's outbound connection carries your shell back.

1. Check that it really is CGNAT

Compare the WAN address your router shows with what curl -s ifconfig.me prints on the Pi. If they differ, or the router's address is in 100.64.0.0/10, the carrier is sharing one public address among many customers. Some carriers sell a public IP as an add-on; if yours does and the Pi is a single device at home, that is the simplest fix.

2. Pick a way for the Pi to connect out

  • Reverse SSH tunnel to a VPS (autossh -R): free apart from the VPS, and fine for one Pi. You maintain the server, and tunnels die silently on mobile links; see why reverse tunnels drop.
  • Mesh VPN (Tailscale, ZeroTier, WireGuard via a hub): good when you, an engineer, want SSH and any port. Each person needs the client, and you get a network, not a view of how the device is doing.
  • An agent built for this: Fieldhand runs one static Go binary on the Pi that keeps an outbound connection on port 443 and gives you a terminal in the browser, health and offline alerts. The first 5 devices are free.

With Fieldhand

On the Pi, as the account you want shells to open as:

curl -fsSL https://api.fieldhand.dev/install.sh | sudo sh -s -- --token fhe_…

The Pi appears in the dashboard within seconds; click Open shell. For your own ssh client, scp or other TCP ports, use the CLI: fh ssh pi@vacation-pi. The full walk-through, including mobile data use, is in Reach a Raspberry Pi behind 4G or CGNAT.

By Abner Souza, who builds Fieldhand. Updated 2026-10-23. Something wrong or out of date? Write to support@fieldhand.dev.

Something wrong or missing on this page? Tell us.