Advance

Tutorial how to open a port on a Windows firewall

Tutorial how to open a port on a Windows firewall
1
(1)

[Updated on Date: 2021-01-27] When a device is connecting to another device on the network, a port with a specific number is considering for this connection. The port is then opened and the receiving device is informed on how to manage the traffic related to this issue and which port to use. As the IP ID specifies which device should receive the traffic from the network, the port also specifies which application this traffic should be available to. In this article, we will learn how to open a port on a windows firewall. You can visit the packages available in Eldernode to purchase a Windows VPS server.

Tutorial open a port on a Windows firewall

By default, all unwanted requests and traffic from the Internet and the network to a system are blocked by the Windows Firewall. However, if you have something like a game server running on your computer, you may need to open a port to allow traffic from your server to pass through your firewall.

Recommended Article: How to Create FTP in XAMPP

How to open a port on a Windows firewall

Firewalls are tools that prevent unauthorized network inbound and outbound traffic on a computer. Of course, sometimes you want to allow unauthorized traffic to pass through the firewall, and that’s exactly what you need to open a certain port.

Click Start and search for “Windows Firewall“, then click “Windows Defender Firewall”.

 

Windows defender firewall

 

After Windows Firewall opens, click Advanced Settings.

 

advanced settings of Windows defender firewall

 

This will open the Windows Defender Firewall with Advanced Security window. Click on the “Inbound Rules” category in the left panel, then select “New Rule” from the right panel.

 

Advanced Security

 

If you need to open a port for outbound traffic, you should select “Outbound Rule” instead of clicking “Inbound Rule“. Most apps make a rule in the “Outbound Rules” section when installing for themselves, and you don’t have to do this manually, but sometimes you’ll need to manually adjust this section.

 

outbound rules in windows defender firewall

 

On the Rule Type page, select the Port option, and then click Next.

 

rule type settings in Windows firewall

Recommended Article: How To Connect LogMeIn Remote Desktop On Windows 10

Open a port in Windows 10

On the next page, you need to specify whether your port uses the “TCP” protocol or “UDP“. An app may use any of these ports, so you can’t tell which one to choose.

The port number can be between 0 and 65535, although the first 1023 ports are reserve for certain services and you cannot use them. With this Wikipedia page, you can access an unofficial list of TCP and UDP ports and find the port used in your application. If you’re not sure if your app uses UDP or TCP, you can create an “Inbound Rule” rule for each protocol.

Select “Specific Local Ports” and then enter your desired port in the corresponding field. If you want to open more than one port, separate them using (,). If you want to open a set of ports, you can specify them with a dash (-). When done, click “Next“.

 

Specific Local Ports in windows firewall

 

On the next page, click “Allow the Connection” and then click “Next“.

 

how to allow the connection in Windows firewall

 

Note: In this tutorial, we have used the “Allow the Connection” option because we trust the application for which we have created a rule.

If you want to be more confident about your app’s connection, you can choose the “Allow the connection if it’s secure” option, which uses the Internet Protocol security system or “IPsec” to validate the connection. You can try this option, but many apps do not support it.

If you try this method and the result is not successful, you will be able to return to this section and select another option.

In the next step, specify when this rule should enforce and then click “Next“. The options in this section are as follows:

Domain: When a computer is connecting to a domain that Windows can validate.

Private: When a computer is connected to a private network, such as a home network or any network you trust.

Public: When a computer is connected to an open network, such as networks in cafes, libraries, airports, and anywhere else that anyone can connect to and whose security cannot be verified.

 

how to open a port on a Windows firewall

 

In the last window, enter a name and an optional description for your rule, and then click Finish.

 

name and description settings

 

Whenever you want to disable this rule, you can find it in the “Inbound” or “Outbound” rule list, right-click on it, and then click “Disable Rule.”

 

how to disable rule

Recommended Article: Tutorial how to open a port on a Windows firewall

Conclusion

Firewalls are tools that prevent unauthorized network traffic from entering and leaving a computer. Of course, sometimes you want to allow unauthorized traffic to pass through the firewall, and this is exactly where you need to open a certain port. Due to the importance of this issue, how to open the port on the Windows 10 firewall is fully and visually taught in this article. For more information, see Overview of the Windows Firewall Environment and How to add a Rule in Windows Firewall.

How useful was this post?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

10 thoughts on “Tutorial how to open a port on a Windows firewall

  1. I opened port 465 on one of my servers, but when I check with the telnet command, it says it is closed. The firewall is off and I do not have an antivirus on that server. what is the reason?

    1. Input ports are on the server. For example, when you install IIS web server on your server, port 80 must be open on your server for clients to open sites. All ports that others use to connect to your server are configured here.

    1. The output ports are on the server. This means which ports your server can connect to from other servers. For example, you have run a script on the server to connect to another server with a specific port. To do this, you must first open the port you want in this section.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day