# 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki-legacy.volthosting.co.uk/windows-vps-tutorials/how-to-allow-ports-through-your-firewall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
