How to Port Forward a FiveM™ Server (Step-by-Step Guide)

How to Port Forward a FiveM™ Server (Step-by-Step Guide)

Port forwarding is essential when hosting a FiveM server to allow players outside your local network to connect. The key port to forward is 30120 for both UDP and TCP protocols..


Step 1: Open Port 30120 on Windows Defender Firewall

  1. Open Windows Defender Firewall with Advanced Security
  1. Select Inbound RulesNew Rule
  1. Choose Port, then click Next
  1. Select TCP, enter port 30120, click Next
  1. Choose Allow the connection, then Next
  2. Apply to all rules and name the rule (e.g., "FiveM TCP 30120")
  3. Repeat the above to create a rule for UDP protocol on port 30120
  4. Repeat these steps in Outbound Rules as well

This step prevents Windows Firewall from blocking your server traffic.


Step 2: Forward Port 30120 on Your Router

  1. Access your router’s admin panel (commonly at 192.168.0.1 or 192.168.1.1)
  2. Log in with your credentials
  3. Navigate to Port Forwarding or NAT settings
  4. Add a rule to forward port 30120 for both TCP and UDP protocols
  5. Enter your server PC’s local IP address (find with ipconfigIPv4 Address)
  6. Save and apply the settings
Tip: Assign a static local IP to avoid losing the forwarding rule on reboot.

Step 3: Verify Port 30120 Is Open

Use tools like:

Ensure your FiveM server is running, then test port 30120 for both UDP and TCP.


Troubleshooting Tips

  • Confirm your FiveM server is active when testing ports
  • Disable or configure third-party antivirus or VPNs that might block traffic
  • Ensure the local IP used in port forwarding is correct and static

Want Hassle-Free Hosting?

Avoid port forwarding complexities with managed FiveM hosting that comes pre-configured for immediate play. Explore our FiveM hosting plans.

Read more