How to check if Windows Firewall blocking a port or program

Windows Firewall acts as a wall between the network traffic and Windows. It is used to enhance system security, blocking and allowing incoming and outgoing network requests. Due to security reasons, configuring the Firewall becomes more important on Windows systems.

The users can configure the Firewall settings as per their requirements to open and block ports. However, misconfiguring the Firewall settings may block the port or program. It is likely that if the program is not allowed to listen to the request on a specific port, your program may not receive the data from the internet over the specific port.

If you want to know which port or program is blocked by Firewall, you need to check your Firewall settings. This guide will show you how to check if Windows Firewall is blocking a port or a program.

How do I check if Windows Firewall is blocking a port?

To check if Windows Firewall is blocking a port, follow the below steps.

1. Check Firewall Settings

  1. In the Taskbar seach box, type Windows Tools.
  2. This shows a Windows Tools app in the search result.
  3. Click on it to open it.
  4. This opens a new window where you can find some administrator tools.
  5. Open the Windows Defender Firewall with Advanced Security.
Windows Firewall blocking a port
Windows Defender Firewall
  1. Click the Action and then select properties.
Windows Firewall blocking a program
  1. Now select the profile (Domain,Private,Public). You can check the profile in the connected network properties.
  2. Under the Logging section, click the Customize button.
Windows Firewall
  1. Select the Yes from the Log dropped packets dropdown menu.
  2. Note the Logging file address from the Name section.
  1. Click the OK to save changes.
  2. Open the File Explorer.
  3. Go to the location where you saved the Log file. It should be the following:
    • C > Windows > System32 > LogFiles > Firewall
  4. Click the pfirewall.log file to check the blocked ports.

2. Check Blocked ports using Command Prompt

  1. In the Tasbar search box, type CMD.
  2. You should see the Command Prompt in the search result.
  3. Right-click the command prompt and select run as administrator.
  4. In the command prompt, type the following command then hit the enter button.
    • netsh firewall show state
How to check if Windows Firewall blocking a port or program
All Open Ports
  1. This command will list all the opened and blocked ports.

However, this command is deprecated, but still, you can use it.

Related article: How to change default RDP port for Remote Desktop Connection


How to check if Firewall if blocking a program

If Windows Firewall is blocking a program, the program may not receive the data over the internet. To check if the Firewall blacks any program, follow the below steps.

  1. Open the Control Panel.
  2. Select the System and Security.
  3. Under the Windows Defender Firewall, you get an link Allow an app through Windows Firewall.
  4. Click the link.
  5. This opens a new window.
  6. Click the Change settings.
  7. Scroll the app and features list, and find the one you want to check if it is blocked by Firewall.
    • If it is unchecked, then it is blocked by firewall.
How to check if Firewall if blocking a program
Allow App through Firewall
  1. Check the App or Feature you want to allow through Firewall on public or private or both networks.

This is all about Windows Firewall blocking a port or program. I hope this guide is helpful for you. Also, feel free to comment below if you have any feedback.

Leave your reply here

Scroll to Top
Windows 11

Windows 11 is now officially available. Have you not upgrade to Windows 11 yet? This time to upgrade to the new Windows 11.

Read more - Free Download Windows 11 ISO: Upgrade Free to Windows 11