01
TCP, UDP: what to know
A port is the number through which a program receives connections on a machine. Games use two protocols:
- UDP, fast, for the game itself (positions, shots, movement);
- TCP, reliable, for connections, downloads and admin tools.
Opening the right number in the wrong protocol is useless: always check both.
02
Default game ports
- FiveM: 30120 over TCP and UDP. txAdmin, the admin interface, listens on 40120 over TCP;
- RedM: 30120 over TCP and UDP, like FiveM;
- Minecraft Java: 25565 over TCP. RCON, if enabled, on 25575 over TCP;
- Minecraft Bedrock: 19132 over UDP;
- Garry's Mod: 27015 over UDP for the game, and over TCP for the remote console (RCON);
- Rust: 28015 over UDP for the game, 28016 over TCP for RCON, and 28082 over TCP for the Rust+ app;
- ARK: Survival Evolved: 7777 and 7778 over UDP for the game, 27015 over UDP for the Steam server list;
- Palworld: 8211 over UDP;
- Arma Reforger: 2001 over UDP;
- Arma 3: 2302 to 2306 over UDP.
These are the default values: if you changed the port in the server configuration, yours is the one to open. Several servers of the same game on one machine must each have their own.
03
Opening ports
- On a Linux server, the firewall must let the port through: with UFW, for example
ufw allow 30120 opens the port over TCP and UDP, and ufw allow 19132/udp over UDP only. The securing a Linux VPS guide explains how to set up the firewall;
- On Windows, an inbound Windows Firewall rule for the port and protocol needed;
- At home, you also need to forward the port on your internet router to the computer running the server. It is also what exposes your connection's address to attacks.
Only open the ports you need: admin ports (RCON, txAdmin) deserve a strong password, or even access restricted to your own addresses.
04
Checking a port is open
- in the server console, check at startup which port it says it is listening on;
- on the machine,
ss -tulpn (Linux) lists open ports and the program using them;
- from outside, try to connect to the server with its public address, from a different connection than the server's.
If the server is listening but stays invisible, it is almost always the firewall or the router forwarding.
05
Ports at CloudFive
On our game plans (FiveM, Minecraft, Garry's Mod, Rust and the others), ports are assigned and opened for you, and Anti-DDoS Premium filters each game's traffic. On a VPS, you manage your firewall yourself, with DDoS protection included upstream.
06
Frequently asked questions
Which port for a FiveM server?
30120, over TCP and UDP. txAdmin, the admin interface, uses port 40120 over TCP.
Which port for a Minecraft server?
25565 over TCP for Java Edition, 19132 over UDP for Bedrock Edition.
Which ports for a Rust server?
28015 over UDP for the game, 28016 over TCP for RCON and 28082 over TCP for the Rust+ app.
My server is running but nobody can see it, why?
Most often, the port isn't open in the firewall, or not in the right protocol (TCP or UDP), or the internet router doesn't forward the port to the server machine.