Skip to content
Look up and open a port

Port 30120: Open the FiveM and RedM server port

Port 30120 is the default port for Cfx.re's FiveM and RedM servers and uses TCP and UDP. This tool shows you the port details and generates firewall commands so players can reach your server.

Built by Justin Schuessler

Try the commands on your own VPS, with root access and your own firewall.

Add multiple ports one at a time, up to 12.

Or choose a preset

Ports

30120/TCP + UDPFiveM / RedM

Game Server · Registered port · OSI layer 7

Game port for FiveM and RedM servers. It requires TCP and UDP.

IANA: commonly used, but unofficial (unassigned)

Firewall rule (inbound)

Firewall commands

Open port

sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp
Check port
Notes on ufw

For Ubuntu and Debian. ufw creates the rule for both IPv4 and IPv6. If ufw is disabled, allow SSH first (sudo ufw allow 22/tcp), then enable it with sudo ufw enable, or you'll lock yourself out.

On a ZAP-Hosting VPS with an active network firewall, you also need to allow the port in the Customer Panel.

Port 30120 explained

What is port 30120 used for?

Purpose

Players connect over port 30120 to a FiveM server for GTA V or a RedM server for Red Dead Redemption 2. The client downloads server information and resources over TCP, while game traffic runs over UDP. You set the port in server.cfg with the endpoint_add_tcp and endpoint_add_udp lines. Many servers also include the txAdmin management panel, which runs on port 40120 over TCP by default.

Origin and standard

The Cfx.re project set port 30120 as the default for FiveM and later adopted it for RedM. The port is not registered with IANA for FiveM, so it is unofficial, but it is the established standard in the community. It falls within the registered port range of 1024 to 49151. To run multiple servers on one system, assign each a separate port, such as 30121 or 30122.

Typical use

  • Game connections to FiveM servers for GTA V roleplay and other modes
  • Game connections to RedM servers for Red Dead Redemption 2
  • Downloading server information and resources over TCP
  • Listing the server in the public Cfx.re server list

Security

TCP and UDP port 30120 must be open for players; otherwise, connections will fail or resources won't load. The txAdmin panel on port 40120, however, shouldn't be accessible to everyone because it provides full control of the server. Ideally, allow access to port 40120 only from your own IP and use strong passwords for txAdmin. Also keep your resources up to date and install scripts only from trusted sources, as malicious resources are a common attack vector.

More ports

Related ports

These ports are often part of the same setup. Click one to see its explanation and firewall commands.

View all well-known ports and the complete IANA list

Port list source: IANA Service Name and Transport Protocol Port Number Registry, as of October 22, 2026. iana.org

Discover more

More tools

FAQ

Frequently asked questions

Quick answers about port 30120.

FiveM and RedM need port 30120 over both protocols. The client uses TCP for server information and downloads, and UDP for game traffic. If either is unavailable, players can't join or may experience connection issues.

With ufw, allow both protocols: sudo ufw allow 30120/tcp and sudo ufw allow 30120/udp. Make sure endpoint_add_tcp and endpoint_add_udp use the same port in server.cfg. Then use the port checker to test connectivity.

Only if you want to access txAdmin remotely in a browser, and even then, not for everyone. Allow access only from your own IP, for example with sudo ufw allow from 203.0.113.10 to any port 40120 proto tcp. Anyone who can reach txAdmin and knows the password can fully control the server.

Often, only TCP or UDP is allowed through the firewall, or the port in server.cfg does not match the firewall rule. Also check that sv_licenseKey contains a valid license key and that the server is not marked as private. It may then take a few minutes for the listing to appear.

Any more questions?

Contact Support
Your own server?

Try the commands on your own VPS

With a ZAP-Hosting VPS, you have root access, can set up services and firewall rules yourself, and can immediately see which ports are open.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all network tools