Gallery project

๐ŸŽฎ Private Minecraft / Valheim server

Friends-only multiplayer, no DDoS surface, no port forwarding. The server lives on your hardware; friends join over the tailnet.

Gallery Gaming Intermediate ~1 hr Prereqs: M3

Why this project

Hosting a Minecraft, Valheim, Factorio, or Terraria server publicly means dealing with random join attempts, DDoS noise, and griefers. Renting a hosted server costs ~$10/mo per game and depends on someone else's infrastructure. With a friends-only Tailscale tailnet, you run the server on your own hardware, friends join via tailnet hostname, and there's literally no public exposure.

Who this helps

What you get

FRIENDS YOUR HOST ๐Ÿ’ป alice's laptopalice@friend.comon tailnet ๐Ÿ’ป bob's laptopbob@friend.comon tailnet ๐Ÿ’ป your laptopyou@homegroup:family ๐ŸŽฎ game serverMinecraft :25565 / Valheim :2456 / etc.UDP traffic over tailnet ยท usually peer-to-peer โ›” ACL: friends can't reach your other devices

Friends join your tailnet; ACL grants group:friends โ†’ tag:gameserver only. Game traffic flows peer-to-peer over Tailscale (UDP, low latency); the rest of your tailnet stays out of reach.

Prerequisites

Steps

Run the game server ~15 min depending on game

Pick a Docker image:

  • Minecraft: itzg/minecraft-server
  • Valheim: lloesche/valheim-server
  • Factorio: factoriotools/factorio
  • Terraria: ryshe/terraria

Each has docs covering RAM/CPU needs, world creation, etc. Get the server running locally first; verify by joining from the same machine.

Make the host reachable on the tailnet ~3 min

Your home server should already be on the tailnet (M3L6). Tag it tag:gameserver for clean ACLs.

Game servers usually expose UDP ports (Minecraft 25565, Valheim 2456). With the host on the tailnet, those ports are reachable on the host's tailnet IP โ€” no Serve/Funnel needed for game traffic. Game traffic isn't HTTP; Tailscale just provides the network path.

Friends join your tailnet ~5 min per friend

Invite each friend as a user (free tier supports 3 users; if you have more, paid tier or a single shared "guest" user works).

They install Tailscale, sign in, and now their machine is on your tailnet.

They connect to the server by name ~2 min

In the game's "join server" UI, friends enter your hostname:

  • Minecraft: game-server (or game-server.tail-abc.ts.net)
  • Valheim: enter the hostname in the "Join Game" โ†’ IP field
  • Most games: hostname or tailnet IP works

ACL: friends should reach only the gameserver ~3 min

{
  "groups": {
    "group:family": ["you@home"],
    "group:friends": ["alice@friend.com", "bob@friend.com"]
  },
  "tagOwners": { "tag:gameserver": ["group:family"] },
  "acls": [
    { "action": "accept", "src": ["group:family"], "dst": ["*:*"] },
    { "action": "accept", "src": ["group:friends"], "dst": ["tag:gameserver:*"] }
  ]
}

Friends can hit the game server. They can't poke at your home server, your media library, or anything else.

Verify

Common issues

Caveats

Where this leads