How to check if Windows Firewall is blocking a port or program

2 minute read
windows laptop cover image

Home » How To » How to check if Windows Firewall is blocking a port or program

The Windows Firewall is a built-in security application that comes with Windows OS since the beginning. The software is built to filter network data transmission to and from your Windows system. The Firewall will block any suspicious and harmful connection depending on the threat level.

The users can configure the Windows Firewall settings as per their need to block or open port in Windows 10 and other versions. However, at times the Firewall may block ports or programs accidentally by user’s or administrator’s misconfiguration. Now, if you want to know if the Windows Firewall is blocking a port or program on your system, here is how to do it.

Steps to check if Windows Firewall is blocking a port

  1. Press Windows Key + R to open Run.
  2. Type control and press OK to open Control Panel.
  3. Click on System and Security.
  4. Scroll down and open “Administrative Tools”.
    Windows Defender Firewall with Advanced Security
  5. In the Administrative Tools window, open Windows Defender Firewall with Advanced Security.
  6. Click on Actions and select Properties.
    Action - Properties
  7. Now select your preferred Profile (Domain, Private, Publick).
  8. In the Logging section, click on the Customize button.
    Windows Defender Firewall with Advanced Security - Properties
  9. Click on the drop-down menu for Log dropped packets: and select Yes.
  10. Take note of the pfirewall.log path in the Name section.
  11. Click OK to save the changes.
    Customize Loggin Settings for the Domain Profile
  12. Open “File Explorer” and go to the path where the log file is saved. It should look something like this:
    %systemroot%\system32\LogFiles\Firewall\
  13. Click on the pfirewall.log file and check for any blocked ports.

Check for Blocked Port using the Command Prompt

  1. Type cmd in the search bar.
  2. Right-click on the Command Prompt and select “Run as Administrator”.
    Windows Firewall Blocked Port
  3. In the command prompt, type the following command and hit enter.
    netsh firewall show state
  4. This will display all the blocked and active port configured in the firewall.

How to check if Windows Firewall is blocking a program

  1. Press Windows Key + R to open Run.
  2. Type control and press OK to open Control Panel.
  3. Click on System and Security.
  4. Click on “Windows Defender Firewall“. 
  5. From the left pane “Allow an app or feature through Windows Defender Firewall“.
    Check Blocked Programs in Windows Firewall
  6. In the allowed app window, scroll through all the apps.
  7. Locate the app you want to check and see if the app is checked. If it is unchecked, the app is blocked on the Firewall.
  8. If your program is blocked, simply uncheck the app and click OK.

RELATED STORIES YOY MAY LIKE:

Discussions

Next up

Use these 2 compilers to translate any programming language code

Vladimir Popescu avatar. By: Vladimir Popescu
Less than a 1 minute read

Used in a versatile and powerful IDE software, compilers can help you transform programming code from one programming language to another. For example, this process […]

Continue Reading

How to fix this webpage wants to run Apple from Apple Inc pop-up

Alexandru Voiculescu By: Alexandru Voiculescu
2 minute read

Surfing the Internet is one of the most frequent activities of modern man. So, it is not unusual that many people encounter problems with their browsers. […]

Continue Reading

WerFault.exe error on Windows 10: Here are 4 quick solutions

Vladimir Popescu avatar. By: Vladimir Popescu
3 minute read

The WerFault.exe error on Windows 10 is more common than you might think. If you’re seeing this error message, you are not the only one. […]

Continue Reading