# How to allow ports through your firewall

1\) [Log into your windows VPS via RDP.](https://wiki-legacy.volthosting.co.uk/windows-vps-tutorials/untitled)

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

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUndXXXygB1N-Ldo3F%2F7mCqvzPeUXXBpJ6sToB.png?alt=media\&token=0b818a5e-b87f-4605-9a83-3ee306cb7b88)

3\) Now click on "advanced settings".

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUp3OUV6BIw82xewI8%2FurjOXzDCA5Dkl33tA58.png?alt=media\&token=cd5e5f03-bb1b-4498-a783-29dec8193f4b)

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

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUpdvwbHoAX_Zh6oM4%2FZdoenQFoMluRHfeGvpq.png?alt=media\&token=b6ccf125-db8b-416c-859c-802bbe4ce938)

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

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUq6k9CNB3sQdMlDGV%2FK0Tan9co08DyghcOapa.png?alt=media\&token=f6d82ec0-025d-4999-8f16-bcf14a0754c8)

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;

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUqUSus2LvlUdXCEYt%2FHdsSt8IRqgX0sN2QTva.png?alt=media\&token=2a21bc79-8ce5-418b-9384-b3afbd1bce6f)

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;

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUsMcRXoWOBYmSHfbd%2FzaDApboIwD1OmKsP9Mc.png?alt=media\&token=e49b0563-891a-4e0e-8618-b75657827012)

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

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUst_vlCTkOdmIQYn-%2FuHQvIlz28WWSzdoQ1ka.png?alt=media\&token=97d53efd-cde7-4771-858f-e7e8644917b6)

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

![](https://2650343955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFkkah3nl0uAUIACZZv%2F-MeUQyyjMbgM9knEoAnX%2F-MeUtQTl_ShzJ-sitw1I%2Fn0Y44QyGEfyaOK7JQEe.png?alt=media\&token=d413fac2-4374-4ae4-9308-6e5ddf040212)

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