How to Open Your Windows Ports for FiveM

Set up your Windows Firewall to allow players to connect to your FiveM server and admins to access txAdmin.

Author: Goodleaf Hosting

When running a FiveM server, ensuring the appropriate ports are open is crucial for player connections and administrative access. This guide walks you through opening ports on Windows to ensure seamless server functionality while maintaining security.


Default Ports for FiveM

  1. 30120 (Required):

    • This port allows players to connect to your server.
  2. 40120 (Optional):

    • Used for txAdmin. This enables admins to access the txAdmin panel via:
      http://YOUR.SERVER.IP.HERE:40120/
      

Note: If you use non-default ports, ensure to open those instead of the defaults mentioned here.


Step-by-Step Guide: Opening Ports

Step 1: Open Windows Defender Firewall

  1. Navigate to:
    Control Panel > System and Security > Windows Defender Firewall.
  2. Click Advanced settings in the left-hand pane.

Step 2: Create a New Inbound Rule

  1. In the Advanced settings window, click Inbound Rules on the left.
  2. Right-click Inbound Rules and select New Rule.

Step 3: Configure the Port Rule

  1. Select Port and click Next.
  2. Choose TCP and specify the port:
    • Specific Local Ports: 30120.
  3. Click Next.

Step 4: Allow the Connection

  1. Select Allow the connection and click Next.
  2. Choose the network types (leave default options unless specified otherwise).
  3. Click Next.

Step 5: Name the Rule

  1. Enter a meaningful name, such as FiveM TCP.
  2. Click Finish.

Step 6: Repeat for UDP

  1. Repeat the steps above, but select UDP instead of TCP in Step 3.
  2. Name this rule FiveM UDP.

Step 7: Add Additional Ports (Optional)

  • If you are using 40120 for txAdmin or other custom ports, repeat the steps for each port with the respective TCP/UDP protocol.
  • Name each rule appropriately (e.g., txAdmin TCP, txAdmin UDP).

Important Notes

  1. Verify Before Submitting Support Requests:

    • Confirm that your firewall rules are correctly configured.
    • Test the connection to ensure ports are open.
  2. Minimize Open Ports:

    • Only open necessary ports to reduce the risk of DDoS attacks or vulnerabilities.
    • Default ports (30120 and 40120) are secured by many hosting providers' DDoS protection measures.
  3. Submitting a Ticket:

    • If additional ports need to be unblocked, provide clear details:
      • Ports: Specify exact port numbers.
      • Protocol: Indicate whether TCP, UDP, or both are required.
      • Reason: Explain why these ports need to be opened.

Final Thoughts

Opening the correct ports on your Windows Firewall ensures your FiveM server runs smoothly, allowing players to connect and admins to manage the server via txAdmin. By following this guide and maintaining a minimal, secure port configuration, you’ll keep your server accessible and protected.

Looking for premium hosting with built-in DDoS protection? Goodleaf Hosting offers secure and optimized servers tailored for FiveM, so you can focus on growing your community.

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)