Skip to main content

Allocating Ports for Game Servers

For game servers hosted on your VPS, you need to open and bind the correct ports so external players can connect.

Standard Game Ports

Here are the default ports used by popular multiplayer games:

  • Minecraft Java Edition: 25565 (TCP/UDP)
  • Minecraft Bedrock Edition: 19132 (UDP)
  • FiveM (GTA V): 30120 (TCP/UDP)
  • Rust: 28015 (UDP) and 28016 (Query)
  • Ark: Survival Evolved: 7777 (UDP) and 27015 (Query)

Opening Ports in UFW (Uncomplicated Firewall)

If UFW is active on your server, you must explicitly allow the ports so that players can connect:

# Allow Minecraft (TCP)
sudo ufw allow 25565/tcp

# Allow FiveM (TCP and UDP)
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp

# Reload Firewall to apply changes
sudo ufw reload