Self Hosting Without Port Forwarding: 4 Ways That Work in 2026
If you have spent an evening on a port forwarding screen that should work and does not, the cause is often your ISP rather than your settings. Here is why it fails and four ways to self host without it, compared honestly.
The short answer: You can self host without port forwarding by using a connection that goes outward from your home, which CGNAT allows. Four common ways are a VPN (WireGuard or Tailscale), Cloudflare Tunnel, a rented VPS as a relay, or an outbound agent such as Gavety. Which is best depends on whether you need to share files.
Why does port forwarding fail so often?
Your home router uses NAT: every device inside gets a private address such as 192.168.1.50, and the router translates it to one public address for outgoing traffic. Port forwarding tells the router to send incoming traffic on a given port to one device. It is simple in theory, and four things commonly break it.
1. Your ISP uses CGNAT
With carrier-grade NAT, your router's "public" address is itself shared and sits behind another NAT run by your ISP. The range 100.64.0.0/10 is reserved for this by RFC 6598. Inbound connections never reach your router, so a forwarding rule has nothing to act on. To check, compare the WAN address in your router's admin page with the address a "what is my IP" site shows. If they differ, or the WAN address is in the 100.64 to 100.127 range, you are behind CGNAT.
2. The router will not cooperate
Menu names differ by brand (port forwarding, virtual server, port mapping), and some ISP-supplied routers hide the feature or lock it.
3. Your public IP changes
Home connections often get a new public address from time to time. People work around it with Dynamic DNS, which is one more service to set up and monitor.
4. Double NAT
If an ISP modem sits in front of your own router, you need to forward the port on both devices, or put the first one in bridge mode.
How can you self host without port forwarding?
Every approach below makes an outbound connection from your home, which CGNAT allows, instead of waiting for an inbound one. They differ in what they give you and what you maintain yourself.
| Approach | Works behind CGNAT | You also need | Best for |
|---|---|---|---|
| VPN (WireGuard, Tailscale) | Yes, with relay fallback when a direct path fails | VPN client on every device that connects | Reaching your own server from your own devices |
| Cloudflare Tunnel | Yes | A Cloudflare account, a domain and the app to expose | Putting a web app you already run on the internet |
| VPS relay | Yes | A rented server and its upkeep | Custom networking and full control |
| Gavety (our product) | Yes | A Raspberry Pi 4 (4 GB+) or Linux machine (4 GB+ RAM) | Private file storage reachable from anywhere |
Option 1: A VPN such as WireGuard or Tailscale
A VPN joins your devices into one private network, so your phone can reach your home server as if it were on your Wi-Fi. WireGuard is the protocol, and Tailscale is a service built on it. According to Tailscale's documentation on connection types, devices connect directly when NAT traversal succeeds and fall back to relay servers when it does not, for example behind a hard NAT. The limit is sharing: a relative who is not on your VPN cannot open a link to your files.
Option 2: Cloudflare Tunnel
Cloudflare Tunnel runs a small program, cloudflared, on your server that connects out to Cloudflare, which then serves your app on a public address. You still install and maintain the app itself. It suits a web app you already run, and it means your traffic passes through Cloudflare, which is a trade-off for sensitive files. Check Cloudflare's current plan terms before you rely on it.
Option 3: A VPS as a relay
Rent a small server with a public address and link it to your home machine with SSH tunnelling or WireGuard. It works reliably and gives you full control. It also adds a recurring bill and another machine to keep patched, and your "home" setup now depends on a rented server.
Option 4: Gavety
Gavety folds the tunnel into the storage product. Its proprietary agent connects outward from your Raspberry Pi 4 (4 GB or more) or Linux machine (4 GB or more of RAM), peer-to-peer or through a relay, so you need no port forwarding and it works behind CGNAT. It supports sharing links, multi-user access and media streaming. It does not do file sync, calendar, contacts or office editing, so it is not a Nextcloud replacement. See the guide and pricing: there is a free LAN-only tier for 1 user, a $100 one-time consumer licence per device and $20 per user per year for remote access.
Which option should you choose?
- Pick a VPN if only you and your own devices need access and you do not need to share links.
- Pick Cloudflare Tunnel if you already run a web app and want a public address for it.
- Pick a VPS relay if you want full control and are comfortable administering a Linux server.
- Pick Gavety if the goal is private file storage you can reach, and share from, anywhere without building the plumbing yourself.
For a wider comparison that also covers reverse proxies, read our port forwarding alternatives guide. If a Nextcloud install is what stalled, see what broke in my Nextcloud setup.
Will IPv6 make port forwarding unnecessary?
IPv6 gives every device a public address, which removes the need for NAT, but it only helps if your ISP and your devices both support it and your firewall allows the traffic. Until then, outbound connections remain the practical route for most home networks. Once you are connected, the next jobs are keeping a copy safe with a home server backup strategy and choosing what to run, as in our private cloud at home guide and Raspberry Pi cloud storage setup.
Frequently asked questions
Can I self host without port forwarding?
Yes. Use an approach that connects outward from your home, such as a VPN, Cloudflare Tunnel, a VPS relay or Gavety. Outbound connections work behind CGNAT, where inbound port forwarding cannot.
How do I know if I am behind CGNAT?
Compare the WAN address shown in your router with the address a "what is my IP" website reports. If they differ, or the WAN address is between 100.64.0.0 and 100.127.255.255 (reserved for CGNAT by RFC 6598), you are behind CGNAT.
Does a VPN work behind CGNAT?
It can. Tailscale documents that devices connect directly when NAT traversal succeeds and use relay servers as a fallback, so a direct path is not always needed. Every device you want to connect still has to run the VPN client.
Is Cloudflare Tunnel free?
What it costs depends on Cloudflare's current plans, and you will need a domain and the app you want to expose. Check Cloudflare's pricing and usage terms, particularly for large file transfers, before you rely on it.
Does Gavety need port forwarding?
No. Gavety's proprietary agent connects outward from your device, peer-to-peer or through a relay, so no port forwarding is needed and it works behind CGNAT. It runs on a Raspberry Pi 4 with 4 GB of RAM or more, or a Linux machine with 4 GB or more.
What does Gavety cost?
There is a free LAN-only tier for 1 user. The consumer licence is $100 one-time per device (up to 4 users), and remote access is $20 per user per year. The enterprise edition is a $400 licence with unlimited users and remote access at $40 per user per year.
Want your files without the router work?
Gavety runs on a Raspberry Pi 4 (4 GB or more) or another Linux machine with at least 4 GB of RAM. No port forwarding and no VPS to manage.
Get started with Gavety