Have you ever encountered an error, Windows Filtering Platform has blocked a connection after a Windows upgrade? The error is accompanied by code 5157(F). It occurs due to an upgrade leading to the misrecognition of the Windows Firewall – when the Base Filtering Engine blocks some packets or connections. The problem may seem complicated to some users but its solution is simple enough to understand and execute.

microsoft, windows, microsoft

What is a Windows Filtering Platform and, how does it help?

The Windows Filtering Platform is a collection of services and API (Application Programming Interface) that helps developers create network filtering applications. It was first introduced in Windows Vista and since then has been a part of Windows. It is used to build independent firewalls, antivirus, and network-related applications. An application can also modify access points as they are processed. The Windows Filtering Platform includes the following:

    Base Filter EngineGeneric Filter EngineCallout Modules

Fix Windows Filtering Platform has blocked a connection?

There are several ways to fix this issue. You can use any of the below-given methods. Some of the solutions are as follows:

    Performing an SFC scanDisabling the Windows Defender FirewallDisabling the antivirus on your PCCreating a new local accountRunning the DISM tool

Let us look at these solutions in more detail.

1] Performing an SFC scan

Follow the next steps to perform a quick SFC scan.

    Press Windows key + R to launch the Run Type wt in the field, press and hold the Ctrl + Shift keys, and click on Ok or press Enter to launch an elevated Windows Terminal.Select Yes on the UAC (User Account Control)Click on the download arrow and select Command Prompt from the resulting menu.

 

microsoft, windows, microsoft

    Type or paste the below-mentioned command and press Enter to run the SFC scan:
sfc/scannow

microsoft, windows, microsoft

    The System File Checker (SFC) is used to identify corrupt system files. In case it identifies any corrupted files, it replaces them with the cached copy that is stored on the system.After the command is executed and the scan is complete, you can restart the PC and see if the problem is eliminated.

2] Disabling the Windows Defender Firewall

Follow the next steps to disable a firewall on your PC.

    Click on Windows +S to launch the SearchType Settings and open the app. In the File a setting box, type Windows Defender Firewall. Select the app from the search list that appears.

microsoft, windows, microsoft

    When the window of Windows Defender Firewall opens, click on the Advanced settings option from the left pane.

microsoft, windows, microsoft

    A new window of Windows Defender Firewall with Advanced Security opens. Click on Windows Defender Firewall Properties.

microsoft, windows, microsoft

    A window with Windows Defender Firewall properties opens. In the Domain Profile tab, go to Firewall state and select Off from the drop-down menu. Then click on Ok.

microsoft, windows, microsoft

    This will switch off the Windows Defender Firewall. Restart your PC.

Now check if the error, Windows Filtering Platform has blocked a connection problem is resolved.

3] Disabling the antivirus on your PC

Try resolving the error of 5157(F) by disabling the antivirus on your PC. Follow the next steps to perform this action:

    Press Windows+S to launch the Search menu. Enter Windows Security in the text field at the top, and then click on the relevant search result.

microsoft, windows, microsoft

    When the Windows Security window opens, click on Virus & threat protection.

microsoft, windows, microsoft

    Go to Manage settings under the Virus & protection settings.You can then click on the toggle button under the Real-time protection and disable the antivirus.Click on Yes on the UAC (User Account Control) prompt.Sometimes the antivirus is known to conflict with the network settings and result in errors. It can be the case with third-party antivirus but, sometimes, a built-in Windows Security can also cause the error.If the error persists, you can uninstall the third-party antivirus app and see if it is resolved.

4] Creating a new local account

Sometimes the error also occurs because the user account is corrupted. In that case, you can create a new local user account on the Windows 11 PC. If you are confused about whether you should create a Microsoft account or a local one, you can choose the latter one since it is not connected to the servers and can be used independently on the device.

5] Running the DISM tool

You can try to run a DISM (Deployment Image Servicing and Management) tool to resolve the error of the Windows Filtering Platform that has blocked a connection. Follow the next steps.

    Click on Windows+S to launch the Search menu. Type the Windows Terminal in the text field at the top. You can then right-click on the search result and choose Run as administrator from the context menu.

microsoft, windows, microsoft

    Select Yes on the UAC (User Account Control)You can then click on the downward-facing arrow at the top and choose Command Prompt from the list of options. You can also use the shortcut Ctrl+Shift+2 to launch the Command Prompt in Windows Terminal.Paste the below-mentioned command and click on Enter to execute it.
DISM/Online/Cleanup-image/Scanhealth
    Execute this command.

Please note

Some of the solutions above, such as disabling the Windows Defender firewall or disabling the antivirus, remove the protection of your PC. These actions may pose a risk of virus attacks. Hence, use these solutions wisely. As soon as the error is resolved, restore the firewall and antivirus settings.

Do let us know in case of any suggestions.

What is Event ID 5157?

This event documents each time the Windows Filtering Platform allows a program to link to another process (on the same or a remote computer) on a TCP or UDP port.

How to turn off the Windows Filtering Platform?

You can disable it in the group policy. Go to configuration – policies – windows settings – security settings – advanced audit policy configuration.

What does it mean when we get the message “Windows Filtering Platform has allowed a connection”?

You may get the message that the Windows Filtering Platform has allowed a connection during the Microsoft Windows Security Auditing. This event is logged when Windows Filtering Platform or WFP allows a program to connect to another process on the same or a remote computer. It does this on a TCP or UDP port. The event ID for this message is 5156.

microsoft, windows, microsoft

TECH NEWS RELATED

How to Hide the Taskbar in Windows

One way to boost your productivity is by working without distractions. In this case, having a cluttered taskbar with notifications can interfere with your workflow. So, you can choose to hide it whenever you’d like.  But, the steps to get rid of the taskbar in Windows depend on whether ...

View more: How to Hide the Taskbar in Windows

How to Turn Off Low Data Mode on iPhone and Android

If you’re not having a good experience with your data, chances are your phone is on Low Data Mode. Normally, this option helps to restrict excess data usage from the background, saving you some data costs.  But if you want to surf the web properly without restrictions and lags, ...

View more: How to Turn Off Low Data Mode on iPhone and Android

FTC sues to block Microsoft’s $69B Activision Blizzard takeover

Proposed $69 billion acquisition would harm consumers, FTC says.

View more: FTC sues to block Microsoft’s $69B Activision Blizzard takeover

Activision CEO confident "this deal will close" despite FTC suing Microsoft

The situation only "sounds alarming," according to Bobby Kotick

View more: Activision CEO confident "this deal will close" despite FTC suing Microsoft

Gorou’s Special Dish and how to cook it in Genshin Impact

Image by Pro Game Guides Gorou is the reliable general of the Watatsumi Army, who greatly respects his subordinates and Kokomi alike. While he lives in constant fear of a particularly sly fox from the Grand Narukami Shrine, he’s shown to be a capable leader in more ways than ...

View more: Gorou’s Special Dish and how to cook it in Genshin Impact

FTC sues Microsoft to block its acquisition of Activison Blizzard

Microsoft’s planned acquisition of Activision Blizzard has another hurdle: the Federal Trade Commission in the United States In a press release, the FTC announced that it is officially suing to block Microsoft’s acquisition of Activision Blizzard. The agency argues that such an acquisition would allow the company to limit ...

View more: FTC sues Microsoft to block its acquisition of Activison Blizzard

Fix External Hard Drive keeps freezing on Windows PC

One of the most convenient ways to increase your computer’s storage is by plugging in an external Hard Drive. However, this has not been the case for most users, according to them, the external Hard Drive keeps freezing whenever they try to access a file or open an app. This ...

View more: Fix External Hard Drive keeps freezing on Windows PC

The Lensa AI Artwork App Will Finally Make You Look Cool

People love entering bizarre text prompts for AI image generators and seeing the results. However, it’s not as easy to make it personal. Lensa is an AI-infused app that can generate selfies of yourself, and they look way too cool. What is Lensa? Lensa is an app created by ...

View more: The Lensa AI Artwork App Will Finally Make You Look Cool

Microsoft is Bringing its Windows 11 Screen Recorder to the Inside

FTC Could Curb Microsoft's Metaverse Ambitions with Activision Lawsuit

How to Fix Broken Packages in Linux

Japanese Charts: Pokémon And Nintendo Continue To Dominate

Disney Dreamlight Valley: How To Catch The Festive Fish

How to Reduce Unwanted Motion Blur on Your TV or Monitor

How to watch the premier of ‘Sonic Prime’ on Roblox

How to make and use a Eitr Refinery in Valheim – Eitr Crafting Guide

How to find your lost Apple Watch or AirPods

Microsoft Teams wants to build an all-new workplace community for your business

This rugged mouse will conquer your multicomputer setup [Review]

Disney Dreamlight Valley – How to Harvest Something Sweet

OTHER TECH NEWS

Top Car News Car News