How to Open Ports on Windows Server

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.

First, open Control Panel and navigate to System & Security. Then, open Windows Firewall. In the left-hand menu, click “Advanced settings”.

Screen Shot 2015-06-29 at 4.22.09 PM


The Advanced Security panel will appear. In the left-hand menu, there are two types of rules:

  • Inbound Rules: Rules that deny or allow traffic coming in to the server from outside.
  • Outbound Rules: Rules that deny or allow traffic going out to the network from the server.

Screen Shot 2015-06-29 at 4.23.06 PM


It is often 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. First, right-click “Inbound Rules” and select “New Rule…” 

Screen Shot 2015-06-29 at 4.23.24 PM


Choose the type of rule to setup. We are defining a specific Port number.

Screen Shot 2015-06-29 at 4.23.41 PM


Type the port number your application uses, and choose TCP or UDP protocol (most applications use TCP).

Screen Shot 2015-06-29 at 4.24.01 PM


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.

Screen Shot 2015-06-29 at 4.24.39 PM


Finally, select whether this rule is for explicitly allowing connections on this port, or explicitly blocking connections on this port.

Screen Shot 2015-06-29 at 4.24.18 PM

That’s it! The firewall rule will go into effect immediately, opening the port to traffic to (or from) your server. As we noted above, be sure to repeat the process as an Outbound rule, if you want to open a port for both sending and receiving.

644 Users Found This Useful

Was this answer helpful?

Didn't find a solution?

Our support team is here to help you.

Contact us by sending a support ticket.

Open a ticket

Powered by WHMCompleteSolution