We have already seen how to manage Windows Firewall. In this post, we will see in detail how to block or open a port in Windows 11/10/8/7 firewall.
Block port in Windows Firewall
When in the ‘Advanced Settings’ of Windows 8 firewall, click the Advanced settings link in the left-hand pane of the main firewall dialog. This will bring up the Windows Firewall with Advanced Security window.
Now, if you see the firewall window shows a list of rules on the left side. From the list, select Inbound Rules to display the inbound rules section.
Then, from the right pane select the ‘New Rule’ option.
Doing so will open the ‘New Inbound Rule Wizard’ window. From it, select ‘Port’ as the new Rule Type and click Next. For safety purposes, I tried blocking TCP port. Click on Specific local ports. Then choose one port like 80 as shown in the screenshot below.
Click Next to continue.
Next, select ‘Block the connection’ as the Action and click Next.
Later, select all the profiles available for different types of connections (Domain, Private and Public) and click Next to continue.
Give a name of your choice to the new rule. I used ‘block suspicious ports’. If you want, you can add the description to the new rule. This step is however optional.
Finally, click the Finish button to configure the settings.
Open port in Windows Firewall
At times, you may feel the need of opening a port in the Windows firewall to let a specific IP communicate with your computer. For example, while playing games. The procedure to open a port remains more or less the same. All you need to do is follow the instructions in the New Inbound Rule wizard, specify the Port and select Allow the connection. That’s it! Port Scanning application like Free Port Scanner helps you identify open ports and services available on a network host. It thoroughly scans specific ports for a given IP and reveals vulnerable access points thereby letting you initiate action and close them to attackers. Now read – How to block a program in the Firewall of Windows 11/10.