Configuration

Port Forwarding and Network Setup

How to port forward a game server on your own PC: find your ports in HostMode, forward them on your router, open your firewall, test, and add a domain.

HostMode's agent connects out to hostmode.net, so you can manage your servers from anywhere without opening a port for the dashboard. Your players are different: they connect straight to your machine, so every game server needs its ports forwarded on your router (or a machine with a public IP). This guide covers every game HostMode runs.

1. Find your server's ports

You don't need to look up a game's default ports. When you create a server, HostMode picks free ports for it so several servers on one machine never clash, and shows them on the server's page in the dashboard, with the protocol (TCP, UDP or both) for each.

  • Minecraft Java: TCP 25565 for your first server, then the next free port for each one after it.
  • Minecraft Bedrock: UDP 19132 for your first server (plus the next port for IPv6), then the next free pair.
  • Satisfactory: a game port (UDP and TCP) from 7778 up, plus a second port at the game port + 1111 (TCP).
  • Other games (Valheim, Rust, Palworld, ARK, Project Zomboid and the rest): a small block of ports starting at 28000. Forward every port the dashboard lists, with the protocol shown.

2. Give your machine a fixed local IP

Your router forwards ports to a local address such as 192.168.1.50. If that address changes after a reboot, forwarding breaks. In your router's settings, look for DHCP reservation (sometimes called a static lease or address reservation) and reserve the current IP for the machine running HostMode.

To find the machine's local IP:

Linux
ip -4 addr show | grep inet
Windows (PowerShell)
ipconfig | findstr IPv4

3. Forward the ports on your router

  1. Open your router's admin page (often 192.168.0.1 or 192.168.1.1, or your ISP's app).
  2. Find Port Forwarding. It may sit under Advanced, NAT, Virtual Servers or Gaming.
  3. Add a rule for each port from step 1: external port and internal port the same, the protocol shown in HostMode, and your machine's local IP as the destination.
  4. Save. Some routers apply the change only after a restart.

If a port needs both TCP and UDP and your router asks you to pick one, add two rules or choose "Both".

4. Allow the ports through your firewall

If your machine runs a firewall, it needs to allow the same ports.

Linux (UFW), example ports
sudo ufw allow 25565/tcp
sudo ufw allow 28000:28003/udp
sudo ufw reload
Linux (firewalld), example port
sudo firewall-cmd --permanent --add-port=28000-28003/udp
sudo firewall-cmd --reload

On Windows with Docker Desktop, allow Docker Desktop through Windows Defender Firewall if Windows asks, or add inbound rules for your server's ports under Windows Defender Firewall → Advanced settings → Inbound Rules.

5. Test it

  1. Start the server in the dashboard and wait until it shows as running.
  2. From the same network, connect using the machine's local IP and the port. If that works, the server is fine.
  3. Ask a friend on a different network (or use your phone's mobile data) to connect with your public IP and the port. You can see your public IP by searching "what is my IP" from the machine.
  4. If it works locally but not from outside, re-check the router rule, the protocol and the firewall.

If forwarding doesn't work: CGNAT

Some internet providers (common with fixed wireless, satellite, 5G home internet and some fiber plans) put customers behind carrier-grade NAT. Your router then has no public IP of its own, and port forwarding can't work no matter how it's set up.

A quick check: if the WAN or internet IP shown in your router doesn't match the IP "what is my IP" shows, you're probably behind CGNAT. Your options are to ask your ISP for a public IP (sometimes free, sometimes a small fee), switch plans, or route players through a tunnel or VPS you set up yourself. HostMode doesn't get around CGNAT for you.

Use a domain instead of an IP

Most home IPs change now and then. A domain gives players one address to remember.

A record

DNS record
Type: A
Host: play (or @ for the root domain)
Value: <your public IP>

Players then connect to play.example.com plus the port. Some games ask for the port separately, others take play.example.com:28000.

SRV record (Minecraft Java)

Minecraft Java can use an SRV record so players don't need to type the port:

DNS record
Type: SRV
Name: _minecraft._tcp.play
Priority: 0
Weight: 5
Port: 25566
Target: play.example.com

Players connect using just play.example.com.

Minecraft notes

Proxies (Velocity and BungeeCord)

For a network of several Minecraft servers, run a Velocity or BungeeCord proxy and forward only the proxy's port. HostMode can set up Velocity forwarding for you from the server's Network page.

Only turn off online-mode on backend servers that sit behind a properly configured proxy, and don't forward the backend servers' ports.

Bedrock players on a Java server (GeyserMC)

  1. Install GeyserMC from the server's Plugins page.
  2. Forward and allow 19132/UDP as well as your Java port.
  3. Bedrock players connect with your address and port 19132.

Troubleshooting

Players can't connect at all

  • The server isn't running yet, or is still starting. Check the console in the dashboard.
  • A port from the dashboard is missing from the router, or has the wrong protocol.
  • The forwarding rule points at an old local IP (see step 2).
  • The firewall on the machine blocks the port.
  • You're behind CGNAT (see above).

Works for you, not for friends

Connecting to your own public IP from inside your network doesn't work on every router. Test from outside your network, or use the local IP when you're at home.

Connections time out or lag

  • The machine may be short on RAM or CPU. Check the live CPU and memory tiles in the dashboard.
  • Your upload speed limits how many players a home connection can serve well.