How to Host a Game Server From Your Home Using PlayIt.gg
Published on November 2nd 2025

Have you ever wanted to host a game server from home, only to be stopped by the technical and security hurdles? The process often involves opening ports on your router, exposing your home IP address, and dealing with dynamic IPs that can change without warning.
In a previous post, I explored using Cloudflare Tunnels to host web services securely. While they are excellent for web traffic, they have a key limitation: they primarily support TCP-based protocols.
Many game servers, however, rely on the UDP protocol, which makes Cloudflare Tunnels an unsuitable choice for gaming. This is where PlayIt.gg comes in. A service that has completely changed how I host game servers.
What is PlayIt.gg?
PlayIt.gg is a service designed to simplify hosting game servers from a home network. It works by creating a secure, outbound tunnel from your computer to the PlayIt.gg network, much like Cloudflare Tunnels. However, it is built from the ground up to support the protocols required for gaming, including both UDP and TCP traffic. When you run the PlayIt.gg client, it establishes a persistent connection to their servers. This gives you a public, static IP address and a memorable `.playit.gg` domain that you can share with your friends, all without ever exposing your home IP address or opening a single port on your router.
PlayIt.gg offers a generous free tier that includes up to three tunnels. If you need more, an upgrade is only $30 per year. Most game servers, like Minecraft, only require one or two ports, making the free plan a great starting point.
Getting started
- Create a free account on PlayIt.gg.
- Similar to Cloudflare Tunnels, you need to install the PlayIt.gg client on the computer/server hosting the game server. Head over to the download page to get the client for your operating system.
- For this tutorial, I'll use the Linux client. After following the installation steps, run `playit` from your terminal. This will generate a unique URL that is printed inside the terminal.
- Visit the URL in your browser. You'll be prompted to link the new agent to your account. Once you accept, you can give your agent a memorable name, like `home-game-server`.
- Back on the PlayIt.gg dashboard, click Create Tunnel. Choose your desired region and protocol type (e.g., TCP, UDP, or both).
- Select the number of ports and enter the local port your game server is running on. For example, the default port for Minecraft: Java Edition is `25565`.
- After creating the tunnel, PlayIt.gg will assign you a static IP and a unique domain (e.g., `your-game.at.ply.gg:7261`) that you can safely share with your friends.


Running as a Service
The PlayIt client doesn't start automatically on boot, so you'll need to create a system service to manage it. Here is an example `systemd` service file for Linux.
First, create the service file:
sudo nano /etc/systemd/system/playit.service
Next, add the following content, making sure to replace `user` with your actual username:
[Unit]
Description=Playit.gg Tunnel Service
After=network.target
[Service]
User=user
Group=user
ExecStart=/usr/local/bin/playit
Restart=always
RestartSec=5
WorkingDirectory=/home/user
[Install]
WantedBy=multi-user.target
Finally, reload the systemd daemon, enable the service to start on boot, and start it now:
sudo systemctl daemon-reload
sudo systemctl enable playit.service
sudo systemctl start playit.service
And that's it! With the client configured to run as a service, your game server is now securely and reliably accessible to the world.
To give a real-world example, I use this exact setup on my home server with LinuxGSM (Linux Game Server Manager) to host servers for Unreal Tournament, Xonotic, Alien Arena, and Minecraft. Each game runs through its own tunnel, complete with a unique, shareable URL and static IP.
Conclusion
In conclusion, PlayIt.gg effectively solves the long-standing challenges of hosting game servers from home. By creating a secure tunnel that supports both UDP and TCP, it eliminates the need for risky port forwarding and shields your home IP address from the public internet. The setup is straightforward, and with a generous free tier, there's little reason not to give it a try. Whether you're hosting a private Minecraft world for friends or running multiple dedicated servers with tools like LinuxGSM, PlayIt.gg provides a simple, secure, and reliable solution. Happy gaming!