Keenrig

Self-hosting without a public IP (behind CGNAT)

A home or office server behind CGNAT cannot be reached on ports 80/443. How to tell, and the two ways out: open the ports, or go through a tunnel.

Many home ISPs use CGNAT: the IP address you see is shared by many subscribers, so no port on it leads back to your machine. Apps you install still run — nobody outside can reach them, and the machine cannot obtain an HTTPS certificate either.

How to tell

The Keenrig installer tests ports 80 and 443 from outside once it finishes. If nothing answers, it says so plainly instead of leaving you to guess, and lists the usual causes: ports not forwarded, a firewall in the way, or a CGNAT connection.

Way out 1: open the ports

If your ISP gives you a real public IP, forwarding ports 80 and 443 on the router to the machine is enough. Behind CGNAT that does not work — ask your ISP for a dedicated IP, or move to a VPS.

Way out 2: pair with Keenrig Cloud to administer it remotely

When the machine is paired with Keenrig Cloud and still cannot be reached from outside, the installer sets up a Cloudflare tunnel — but that tunnel carries only the ADMIN PANEL, not your apps. Traffic goes: browser → Cloudflare → the admin panel on your machine. Nothing listens on a public port.

  • The tunnel serves the admin panel only; apps installed on the machine still need ports 80 and 443 reachable from outside before anyone can open them — CGNAT still blocks apps, and the tunnel does not change that.
  • The tunnel is set up automatically when you pair with the cloud using the install command’s --join flag while the machine cannot be reached from outside. Pasting a pairing token straight into the admin panel pairs the server too, but does not set up the tunnel — behind CGNAT you need to run the install command again.
  • Cloudflare terminates HTTPS at its edge for the admin-panel traffic that goes through the tunnel, which means it can read that traffic.

If you need apps reachable from the internet while the machine is still behind CGNAT, the only way today is Way out 1: ask your ISP for a dedicated IP, or move to a VPS with a public IP.