Articles on: Virtual Private Servers & Dedicated Servers

How to allow ports through your Windows firewall

Log into your windows VPS via RDP

Type "firewall" into the search bar and then click on "windows defender firewall".
windows-defender-fwl-search.png

Now click on "advanced settings".
firewall-advanced-settings.png

Click on either "Imbound Rules" or "Outbound Rules" depending on which one you need.
Then click on "new rule".
firewall-new-rule.png

Make sure you have the "port" selection selected.
firewall-select-port.png

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.

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

firewall-protocol.png

Click on the option that most applies to you here. If you want to fully open the port, select the "Allow the connection" option.
firewall-allow-connection.png

Here, select what applies to you. Normally, you would leave these all checked.
firewall-profile.png

Here, name the rule something you can remember as I have done below.
firewall-name.png

You have now allowed the port(s) through your firewall!

Updated on: 07/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!