> For the complete documentation index, see [llms.txt](https://wiki-legacy.volthosting.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki-legacy.volthosting.co.uk/windows-vps-tutorials/how-to-allow-ports-through-your-firewall.md).

# How to allow ports through your firewall

1\) [Log into your windows VPS via RDP.](/windows-vps-tutorials/untitled.md)

2\) Type "firewall" into the search bar and then click on "windows defender firewall".

![](/files/-MeUndXXXygB1N-Ldo3F)

3\) Now click on "advanced settings".

![](/files/-MeUp3OUV6BIw82xewI8)

4\) Click on either "Imbound Rules" or "Outbound Rules" depending on which one you need. \
Then click on "new rule".

![](/files/-MeUpdvwbHoAX_Zh6oM4)

5\) Make sure you have the "port" selection selected.

![](/files/-MeUq6k9CNB3sQdMlDGV)

6\) Select "TCP" or "UDP". If you need to allow both, you will have to make another rule (one for TCP and the other for UDP). \
Then type in what port you want to allow through. I've typed in the fivem default port.&#x20;

However, you can allow more than one port though by using commas and dashes. \
For example, "30120, 40120" will allow ports 30120 and 40120 though. \
If you did "30120 - 30122" that would allow ports 30120, 30121 and 30122 through the firewall.&#x20;

![](/files/-MeUqUSus2LvlUdXCEYt)

7\) Click on the option that most applies to you here. If you want to fully open the port, select the "Allow the connection" option.&#x20;

![](/files/-MeUsMcRXoWOBYmSHfbd)

8\) Here, select what applies to you. Normally, you would leave these all checked.&#x20;

![](/files/-MeUst_vlCTkOdmIQYn-)

9\) Here, name the rule something you can remember as I have done below.&#x20;

![](/files/-MeUtQTl_ShzJ-sitw1I)

10\) You have now allowed the port(s) through your firewall!&#x20;
