How to Fix 5157(F): Windows Filtering Platform has blocked a connection [Steps]

What is ‘5157(F): Windows Filtering Platform has blocked a connection’ error in Windows 10/11?

In this post, we are going to discuss on How to fix 5157(F): Windows Filtering Platform has blocked a connection error in Windows 10/11. You are provided with easy steps/methods to resolve the issue. Let’s starts the discussion.

‘5157(F): Windows Filtering Platform has blocked a connection’ issue:

It is common Windows problem occurred usually during or after Windows upgrade. This issue is primarily appeared because of some issue occurred during Windows upgrade process. When you open Event Viewer app in Windows 10/11 computer in order to check why you are experiencing issue during or after Windows upgrade. This error is occurred when certain packets or connections are blocked by Base Filtering Engine.

If you are not aware, Windows Filtering Platform is set of services and API (Application Programming Interface) designed to help the developers create network filtering applications. It is used to develop independent firewalls, antivirus, and network-related applications. Also, an application can alter access points as they are processed. Windows Filtering Platform including Base Filter Engine, Generic Filter Engine and Callout Modules.

The possible reasons behind the issue can be the corruption system files and system image, interference of antivirus/firewall, issue with user account in computer, malware or viruses infections in computer, corruption in Windows computer, and other issues. If you are facing the same issue and searching for ways to fix, then you are in right-place for the solution. Let’s go for the solution.

How to fix 5157(F): Windows Filtering Platform has blocked a connection error in Windows 10/11?

Method 1: Fix ‘5157(F): Windows Filtering Platform has blocked a connection’ error with ‘PC Repair Tool’

‘PC Repair Tool’ is quick & easy ways to find and fix BSOD errors, DLL errors, EXE errors, problems with programs/applications, malware or viruses infections in computer, system files or registry issues, and other system issues with just few clicks.

Method 2: Disable Firewall

Interference of Windows firewall could be a reason behind the issue. You can disable your firewall in computer to fix.

Step 1: Open ‘Control Panel’ app in Windows PC via Windows Search Box and go to ‘System and Security > Windows Defender Firewall’

Step 2: Click ‘Turn Windows Defender Firewall ON or OFF’ option from left-pane, tick ‘Turn OFF Windows Defender Firewall (not recommended)’ under private and public network settings, and hit ‘Ok’ button to save the changes. Once done, restart your computer and check if the issue is resolved.

Method 3: Run SFC scan and DISM scan

You can run SFC scan and DISM scan in computer to repair corruption in system files and system images in computer and fix this issue.

Step 1: Type ‘cmd’ in Windows Search Box and press ‘CTRL + SHIFT + ENTER’ keys on keyboard to open ‘Command Prompt as Administrator’

Step 2: Type the following commands and hit ‘Enter’ key after each to execute.

sfc /scannow

DISM/Online /Cleanup-image /Scanhealth

DISM/Online /Cleanup-image /Restorehealth

Step 3: Once executed, restart your computer and check if the issue is resolved.

Method 4: Restart Windows Security Center

Another way to fix the issue is to restart Windows Security Center service in computer.

Step 1: Open ‘Services’ app in Windows PC via Windows Search Box

Step 2: Find and double-click ‘Windows Defender Firewall’ service to open its Properties.

Step 3: Select ‘Automatic’ from ‘Startup Type’ dropdown, and hit ‘Start’ button under ‘Service Status’ section, hit ‘Apply > Ok’ button to save the changes.

Step 4: Now, right-click ‘Start’ menu and select ‘Windows Terminal (Admin)’ to open it, and type the following commands and hit ‘Enter’ key to execute.

reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender” /v “DisableAntiSpyware” /d 1 /t REG_DWORD /f

Step 5: Once executed, restart your computer, and after restart, execute following commands in Windows Terminal

reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender” /v “DisableAntiSpyware” /d 0 /t REG_DWORD /f

Step 6: Once executed, restart your computer again and check if the issue is resolved.

Method 5: Disable your antivirus

Another way to fix the issue is to disable your antivirus software in computer.

Step 1: Open ‘Windows Security’ app via Windows Search Box and go to ‘Virus & Threat Protection’

Step 2: Click ‘Manage Settings’ under ‘Virus & Threat Protection settings’, and click toggle under ‘Real-Time Protection’ to disable the antivirus, and confirm it. Once done, check if the issue is resolved.

Method 6: Create a new user account

This issue can be occurred due to some issue with user account in Windows PC you are login. You can fix the issue by creating a new user account in Windows computer and login into computer with newly created account, and check if it works for you toward resolving the issue.

Conclusion

I hope this post helped you on How to fix5157(F): Windows Filtering Platform has blocked a connection error in Windows 10/11 with easy ways. You can read & follow our instructions to do so. That’s all. For any suggestions or queries, please write on comment box below.