How to block or open a port in the Windows firewall

RECOMMENDED: Click here to fix Windows errors and optimize system performance

You can configure Windows firewall settings (block or open the port in Windows 10/8/7l) and restore the default settings if you are not satisfied with the default Windows firewall settings. To do this, you must go to the advanced firewall settings. It’s easy, just open the control panel and in its search field Type – Firewall. Then open the firewall and click on the’Advanced settings’ link.

We have already seen how to manage the Windows firewall. In this article, we look in detail at how to block or open a port in the Windows 10/8/7 firewall.

Block the port in the Windows firewall

January 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.


In the ‘Advanced settings’ of the Windows 8 firewall, click the’Advanced settings’ link on the left side of the main firewall dialog box. The Windows Firewall with Advanced Security window opens.

When you now see the firewall window, a list of rules is displayed on the left side. In the Input Rules list, choose to display the Input Rules section.

In the right pane, select ‘New rule’.

This opens the’New Input Rule Wizard’ window.

Select’Port’ as the new rule type and click Next. For security reasons, I tried to block the TCP port. Click Specific Local Ports. Then select a port as shown in the screenshot below.

Click Next to continue.

Then select’Block Connection’ as action and click Next.

Later, select all available profiles for different connection types (Domain, Private and Public) and click Next to continue.

Give the new rule a name of your choice. I used Suspicious Ports Block. If you wish, you can add the description of the new rule. However, this step is optional.

Finally, click the Finish button to configure the settings.

Open a port in the Windows firewall

Sometimes you need to open a port in the Windows firewall to allow a specific IP address to communicate with your computer. For example, while playing. The procedure for opening a port remains more or less the same. All you have to do is follow the instructions of the New Inbound Rule Wizard, specify the Port and Allow the connection.

That’s it!

The port scanning application like Free Port Scanner helps you identify ports and services open on a network host. It carefully scans specific ports for a specific IP and displays vulnerable access points so you can take action and close them for attackers.

Read Now – How to block a program in the Windows 10 firewall.

RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance

Related Video