How to block or open a port in the Windows firewall

Updated July 2024: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
  1. Download and install the repair tool here.
  2. Let it scan your computer.
  3. The tool will then repair your computer.

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

July 2024 Update:

You can now prevent PC problems by using this tool, such as protecting you against file loss and malware. Additionally it is a great way to optimize your computer for maximum performance. The program fixes common errors that might occur on Windows systems with ease - no need for hours of troubleshooting when you have the perfect solution at your fingertips:

  • 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.

Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here

Related Video