In this article we describe how to share a specific port in Windows Firewall.

By default, a Windows server does not allow any connections from the outside. Ports must be explicitly released.

Imagine you have a Minecraft server running on your Windows server. Your colleagues can only connect to port 25565 after this port has been released in the Windows firewall.

Connect to the Windows Server

First, connect to your Windows server. You must act as administrator.

Open Windows Firewall

Now search for „Firewall“ in the Start menu.

Open Windows Firewall

Open the entry named „Windows Defender Firewall with Advanced Security“. A new program will open.

Add rule

Now you will see an entry named „Incoming rules“ in the new window on the left. Right-click on it and choose „New rule“ from the context menu.

A wizard will open that will help you during the creation of rules.

The first step asks which rule type we want to create. Since it is about opening a port, the first step selects Port rule type. Click Next.

Now you have to do some research. You need to know which port and which protocol your program uses.

Here are some standard ports:

  • Minecraft: TCP, 25565
  • TeamSpeak: UDP, 9987 und TCP 30033
  • Webserver: TCP, 80, 443
  • CS:GO Server: TCP: 27015-27030,27036-27037 und UDP: 4380,27000-27031,27036

So you select the correct protocol TCP or UDP and then enter the ports applicable to your program in the „Specific local ports“ field. Then click Next.

Enter ports in wizard for new incoming rule

The next step is to select the action. Since the connection should be allowed, please select „Allow connection„. Then click on Next.

In the penultimate step you can select the connections for which this rule should apply. In the default case, all connections are already checked. You can leave this as it is and click Next.

The last step is also very simple: give a name to this rule. We recommend you to put the name of the program you shared in there. For example, „Minecraft Server„. If you like, you can also add a description.

Set a name for an incoming firewall rule.

By clicking on „Finish“ you have successfully created the rule! The port is now open in the Windows firewall and can be reached from outside.

If you have any questions, please feel free to contact our support team at any time. We will help you then.