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)
You decide which services we may enable for analytics, personalization, and external content.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.2
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.
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 commands
Open port
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udpFor 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
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.
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.
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
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
Calculate the network address, broadcast address, subnet mask, and usable host range from a CIDR address, and convert between CIDR and IP ranges (IPv4 and IPv6).
Built by Jakub Martyniak
Interactively learn the 7 layers of the OSI model: click layers, assign terms such as switch, ARP, or port 443, and explore animated encapsulation, a quiz, and a cheat sheet for the IHK exam.
Built by Justin Schuessler
Interactively learn the 4 layers of the TCP/IP model (DoD model) according to RFC 1122, with OSI model mapping, animated encapsulation, a port quiz, and a cheat sheet.
Built by Justin Schuessler
Check whether specific ports are open on an IP or hostname—select a protocol or game instead of scanning all ports at once.
Built by Sebastian Rademacher
FAQ
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 SupportWith a ZAP-Hosting VPS, you have root access, can set up services and firewall rules yourself, and can immediately see which ports are open.
No setup. No risk. Online in seconds.
Looking for more tools? View all network tools