Site icon VPS Windows

How to open Port with Windows Firewall in Windows

Network port is the input port of the computer, all activities such as sending data and receiving data on the computer go through the Port, so how to open Port, below we will guide you to open Port with Windows Firewall in Windows.

What is a network port?

Port is the 16-bit protocol of each file transmitted and received via TCP, UDP protocol. Network port is also called the port that specifies separate data files.

What is the role of network port?

The role of network port includes:

How to open Port with Windows Firewall in Windows?

To open a port in Windows 10, you need to create a custom rule in Windows Firewall. Follow the steps below to create a port opening rule using Windows Firewall.

Open Port for Inbound Traffic (traffic from Internet to server)

  1. Open Start by pressing the key combination “Window + r” => enter “wf.msc” => OK

Or search and open “Windows Defender Firewall” from the Windows search toolbar => select Advanced Settings

  1. The Windows Defender Firewall with Advanced Security window appears => Select “Inbound Rules”.

  1. In the new window, select the Port option => click Next.

  1. Select the protocol type of the Port: “TCP” or “UDP

Select “Specific local ports” and enter the port you want to open => click Next.

  1. Select Allow the connection => Next.

  1. Select the type of network you want to apply the rule to and click Next.

  1. Name and click Finish to complete

You will see the new rule configured in the Windows Firewall Rules window.

Open port for Outbound Traffic

Similarly, to open a port for Outbound Traffic (traffic generated from Server to Internet), do the following

  1. Open Windows Defender Firewall as instructed above
  2. Select Outbound Rules => New Rule…

  1. Select Port => click Next.

  1. Select the Port protocol type: “TCP” or “UDP

Select “Specific local ports” and enter the port you want to open => click Next.

  1. Select Allow the connection => click Next.

  1. Select the network type you want to apply the rule to => click Next.

  1. Name => click Finish to complete.

Disable or delete port opening rules in Windows Firewall

If you no longer need a dedicated rule to open a port, you can disable or delete the rule by right-clicking on the rule you need to operate: select Disable Rule to disable or Delete to delete.

Above is the guide to open Port with Windows Firewall in Windows. Hopefully you can operate on your computer successfully, vpswindows hopes this article will provide you with a lot of useful information, if you have any questions about VPS service, please contact us for advice and register for a free VPS account.

Exit mobile version