> ## Content Index
> Fetch the complete content index at: https://knowledgebase.content.iceline.host/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Setup FiveM™ Server Port-Forwarding
- URL: https://knowledgebase.content.iceline.host/how-to-setup-fivem-server-port-forwarding/
- Published: 2023-01-04T03:50:21.000Z
- Updated: 2023-01-31T11:17:09.000Z
- Author: Iceline Hosting
- Tags: FiveM, #Import 2026-11-17 18:38

## What is a firewall?

A [firewall](https://en.wikipedia.org/wiki/Firewall%5F%28computing%29?ref=knowledgebase.content.iceline.host) is a software (or hardware) security component used to filter traffic on a computer network based on configured rules. It can be used to secure access to a privileged resource, or filter undesirable traffic from the internet. In this guide, we will explain how to setup port-forwarding to your [FiveM server.](https://iceline-hosting.com/games/fivem?ref=knowledgebase.content.iceline.host)

By default, Windows Server comes with strict firewall rules applied to inbound traffic, so to run a FiveM server accessible over the internet some changes must be made.

## How to setup the Windows firewall for FiveM

First, log into your [Iceline Windows Server VPS](https://iceline-hosting.com/cloud/game-vps?ref=knowledgebase.content.iceline.host) using remote desktop or VNC.

After logging in, open the start menu and search for **Windows Defender Firewall**

![](https://knowledgebase.content.iceline.host/content/images/wordpress/2022/03/Screenshot-2022-03-08-095149.png)

Windows Defender Firewall found in the Start Menu

Open the program and click on **Advanced Settings** on the left sidebar.

![](https://knowledgebase.content.iceline.host/content/images/wordpress/2022/03/firewall2-1024x577.png)

With the firewall management window open, right-click (1) **Inbound Rules** and select (2) **New Rule**

![](https://knowledgebase.content.iceline.host/content/images/wordpress/2022/03/firewall3.png)

In the rule wizard, select **Port** and click **Next**

![](https://knowledgebase.content.iceline.host/content/images/wordpress/2022/03/firewall4.png)

Rule type

Now select **TCP** as the protocol and **30120** as the port, which is the default for FiveM servers.

![How to Setup FiveM Port-Forwarding](https://knowledgebase.content.iceline.host/content/images/wordpress/2022/03/firewall5.png)

Rule Protocol and Ports

Press **Next** twice and you should end up in the last step, **Name**. You can use whatever you want in this field, but using something short and to the point will make it easier to find this rule in the future if you wish to remove or modify it.

![How to Setup FiveM Port-Forwarding](https://knowledgebase.content.iceline.host/content/images/wordpress/2022/03/firewall6.png)

Rule name

Once you click **Finish** the VPS will now allow traffic on port **30120** using TCP.

However, FiveM also requires port **30120** to be available over **UDP**. To do that, follow the same steps outlined above but in the **Protocol and Ports** section, select **UDP** instead of **TCP**.

In this guide, we have tried to explain how to setup port-forwarding to your FiveM server, but if something was unclear or outdated, feel free to reach out to us by [creating a ticket](https://billing.iceline-hosting.com/submitticket.php?ref=knowledgebase.content.iceline.host).