Self-Hosting · Game Servers
Let Friends Join Your Game Server
A game server nobody can join is a single-player world with extra steps. Letting friends in from their own homes has exactly three working answers on a home connection, and the one many self-hosters reach for first — the same tunnel that serves their web apps — is not among them, because game traffic is mostly UDP and Cloudflare Tunnel does not carry it. This guide compares port forwarding, Tailscale and playit.gg on setup effort, exposure and protocol, and diagnoses the silent reason forwarding so often fails: your provider may have put its own NAT in front of your house.
Published Nov 24, 2026
The one-sentence warning, first
If your plan is to reach your game server the way you reach your other self-hosted apps, stop here and change it: Cloudflare Tunnel does not carry the arbitrary UDP traffic most game servers use. The tunnel is an HTTP-shaped tool, and game traffic is mostly UDP on game-specific ports — Minecraft is the exception that proves the shape of the rule, and even it is not what the tunnel is for. Readers arrive at this guide from the site’s remote-access cluster, where the tunnel is a standing recommendation for web apps, and lose a weekend discovering the exception the hard way. Game servers have three working answers instead. This guide compares them properly: port forwarding, Tailscale, and playit.gg.
The three working answers, compared
| Method | Setup effort | What is exposed | Carries UDP? |
|---|---|---|---|
| Port forwarding | A router rule per game | The game’s ports, publicly, on your home address | Yes — it is the native path |
| Tailscale | An app on the server and on each friend’s machine | Nothing public; access stays inside your private network | Yes |
| playit.gg | An agent program on the server box | A public tunnel address run by a third party; your router and address stay out of it | Yes — games are its purpose |
Every row works. They differ in who has to do what, what a stranger on the internet can see, and whose infrastructure sits in the middle. The sections below take forwarding first, as the baseline the others replace, then the diagnosis that explains most forwarding failures, then the two answers that route around the router entirely.
Port forwarding, with hygiene
Port forwarding is a standing instruction to your router: traffic arriving on this port goes to this machine. For a game server it is one rule per game — Minecraft’s 25565 TCP to the server box, Valheim’s UDP ports to the same — and players anywhere join at your home address, using a dynamic DNS name if your address changes, which the anchor guide’s FAQ covers. The anchor also makes the exposure case in full; this guide assumes you have read it and adds the working hygiene that keeps a bounded exposure bounded:
- Forward only the game’s ports. Each rule names the exact ports the one game needs. A range opened “to be safe” is exposure with no player on the other end of it.
- Forward to the server box only. The rule points at the machine running the server — ideally the NAS or mini PC in a container — never at a general-purpose family PC.
- One rule per game, labeled, and deleted when the game retires. Routers accumulate rules the way garages accumulate paint tins. A forwarding table you can read at a glance is a security control in itself.
- Use the game’s own allowlist. Most dedicated servers can restrict joining to named players. A public port with an allowlist is a door with a list on it; without one it is just a door.
The wider question — what belongs exposed on a home network at all — is argued in the exposure guide, and it is worth reading before the first rule is written, not after.
When forwarding silently fails: CGNAT
The most common forwarding failure looks like this: the rule is correct, the server answers on the home network, and friends outside time out, every time. The usual cause is not a typo. It is that your router does not hold your public address at all — your internet provider has put its own NAT in front of your house, a setup called CGNAT, and your forwarding rule governs a door that opens onto the provider’s hallway, not the street.
The diagnosis takes two minutes. First, find the address your router reports on its internet or WAN side — it is on the router’s status page. Second, ask the internet what your address is: any “what is my IP” lookup in a browser shows the address the world sees. If the two numbers differ, something is translating between you and the internet, and no router rule of yours can forward through it. A WAN address in the 100.64 to 100.127 range is the fingerprint of CGNAT specifically — that block is reserved for provider NAT. A WAN address in the usual private ranges (10.x, 172.16–31.x, 192.168.x) points at the milder version of the same problem: your router sits behind the provider’s gateway box, doing NAT twice.
The fixes, in order: for double NAT, put the provider’s gateway in bridge mode or forward the same ports on it — annoying, but yours to do. For CGNAT, ask the provider for a public address; some hand one over on request, some charge for it, some only offer it on other tiers. And if the answer is no, forwarding is simply not available to you, which is exactly the situation the next two sections exist for.
Tailscale: the no-exposure answer
Tailscale builds a private network over the internet: your server and each friend’s machine run the app, sign in, and can then reach each other at stable private addresses as if they were on the same LAN — UDP included, which is the entire point here. Nothing is published. There is no port for a stranger to find, no rule in your router, and CGNAT is irrelevant because the connections are made outward. The Tailscale and WireGuard comparison covers the underlying machinery; readers who would rather not depend on a company’s coordination servers can run the same network on Headscale instead.
The costs are social, not technical. Every friend installs an app and signs in — a five-minute ask that some groups will somehow make a month-long one. And where Tailscale cannot arrange a direct connection between two homes, traffic relays through its fallback servers, which can add latency; a wired server and ordinary home routers usually connect directly. What you get for the small friction is the strongest property on this page: the server is reachable by exactly the people you invited and invisible to everyone else.
playit.gg: when you cannot touch the router
playit.gg exists for the households the other two answers fail: no router access (a landlord’s network, a provider-locked box, student housing), or CGNAT with a provider who will not sell you an address. You run its agent program on the server box; the service gives your game a public address on its tunnel, and friends join at that address with nothing installed. Games are the service’s entire focus, so the UDP support that the general-purpose tunnels lack is the product.
The tradeoffs deserve plain statement. Your traffic runs through a third party’s infrastructure, under their rules and their uptime. A free tier exists, but the long-term shape of any young service’s free tier is that service’s to change, so treat the tunnel as a convenience you can replace — with Tailscale, the day your network allows it — rather than as foundations. As the option of last resort it is a good one; it simply should not be the first resort while the two answers above are open to you.
Which one your household should pick
A small, stable group of friends and a server you own: Tailscale, and it is not close. A community server, or friends who will never install anything: port forwarding, with the hygiene above and the allowlist on. No router access, or CGNAT you cannot escape: playit.gg, eyes open about the third party in the middle. Whichever you choose, the server itself stays the same — the per-game guides in this cluster, from Minecraft in Docker onward, build servers that any of the three can carry.
Official documentation and references
- Tailscale — the private-network service the guide recommends for friend access, including how its connections work
- playit.gg — the game-focused tunnel service covered as the no-router-access option
Frequently asked questions
Why can’t I just use Cloudflare Tunnel for my game server?
Because the tunnel is built for HTTP traffic, and game servers mostly speak UDP on game-specific ports, which the tunnel does not carry. It is an excellent tool for the web apps this site covers elsewhere; a game server needs one of the three routes in this guide instead — port forwarding, Tailscale, or playit.gg.
How do I know if I am behind CGNAT?
Compare two numbers: the internet (WAN) address your router reports on its status page, and the address a “what is my IP” lookup shows the world. If they differ, a provider NAT sits between you and the internet. A WAN address in the 100.64–100.127 range is the reserved block for provider NAT and settles the question on its own.
Is Tailscale fast enough for gaming?
For a friends-and-family server, yes. Tailscale connections are direct between the two homes in the usual case, so the game traffic takes the same path it would over a forwarded port. Where a direct connection cannot be arranged, traffic relays through fallback servers and latency can rise — the exception, not the pattern.
Is port forwarding a game server unsafe?
It is a bounded, deliberate exposure when it is done with the hygiene in this guide: only the game’s ports, only to the server box, rules removed when games retire, and the game’s allowlist switched on. The exposure guide on this site argues the wider case for what belongs on a home network’s public side.
My friends refuse to install anything. What then?
Port forwarding is the answer built for that group — players need nothing but the game and your address. playit.gg also asks nothing of players. Tailscale’s one real cost is exactly that install, which is why the choice in this guide is framed by the group as much as by the network.

