Windows Firewall is a utility included with all recent versions of Windows. It includes options to open ports, close ports, and allow specifics programs and services through the system firewall. In this guide we will show you how to open a specific port number with on a Windows VPS or dedicated server.
Steps:
1) Open the Control Panel and go to System & Security. Now, open Windows Firewall. On the left-hand menu, click on "Advanced settings".
Here, It will appear with two types of rules:
- Inbound Rules: Rules that deny or allow traffic coming into the server from outside.
- Outbound Rules: Rules that deny or allow traffic going out to the network from the server.
2) Often, it is useful to create both an inbound rule and an outbound rule for your application's port. Repeat the following steps 2 times, once for Inbound, and once for Outbound. So, right-click “Inbound Rules” and select “New Rule…”
3) Choose the type of rule to set up. We are defining a specific Port number.
4) Type the port number your application uses, and choose TCP or UDP protocol (most applications use TCP).
5) Select whether to apply the rule only on local (private) networks, or on public networks as well. You will want to select Public, most likely.
6) Finally, select whether this rule is for explicitly allowing connections on this port, or explicitly blocking connections on this port.
That’s it!