Windows 11, the latest iteration in the series from Microsoft, is said to be the most advanced and user-oriented. However, encountering errors remains as common, if not more than the previous version. In this article, we will be taking up the Windows Filtering Platform has blocked a connection problem.
The error arises when certain packets or connections are blocked by the Base Filtering Engine. Though the problem may seem intricate to most users, its solutions are rather simple and have been listed out in the following sections.
For those encountering the error in Windows 11, it’s likely that the upgrade didn’t go through successfully and there’s some kind of misrecognition in Windows Firewall.
But, before we head to the fixes, it’s imperative that you understand the role of the Windows Filtering Platform and its main features.
How does the Windows Filtering Platform help developers?
Windows Filtering Platform, a set of system services and API (Application Programming Interface) allows developers to create network filtering applications. It was first introduced in Windows Vista and has been a part of the Windows ecosystem ever since.
It can also be used to build independent firewalls, antivirus, amongst other network-related applications. With this, an application can access and modify packets while these are being processed.
The three main features of the Windows Filtering Platform are as follows:
- Base Filter Engine
- Generic Filter Engine
- Callout Modules
Now that you are fairly acquainted with the concept, let’s head to the most effective fixes for the Windows Filtering Platform has blocked a connection problem in Windows 11.
How can I fix the Windows Filtering Platform has blocked a connection error in Windows 11?
1. Disable the Firewall
- Press Windows + S to launch the Search menu. Enter Windows Defender Firewall in the text field at top and click on the relevant search result that appears.
- Next, click on Turn Windows Defender Firewall on or off from the list of options on the left.
- Tick the checkboxes for Turn off Windows Defender Firewall (not recommended) under both Private network settings and Public network settings, and click on OK at the bottom to save the changes.
After making the changes, restart the system and check if the Windows Filtering Platform has blocked a connection problem is eliminated in Windows 11. If not, head to the fix listed next.
2. Run DISM tool
- Press Windows + S to launch the Search menu. Enter Windows Terminal in the text field at the top, right-click on the relevant search result and select Run as administrator from the context menu.
- Click Yes on the UAC (User Account Control) prompt that pops up.
- Click on the downward-facing arrow at the top and select Command Prompt from the list of options. Alternatively, you can hit the Ctrl + Shift + 2 to launch Command Prompt in a new tab in Windows Terminal.
- Next, paste the following command and hit Enter to execute it:
DISM/Online /Cleanup-image /Scanhealth
- Finally, execute the following command:
DISM/Online /Cleanup-image /Restorehealth
3. Perform a quick SFC scan
- Press Windows + R to launch the Run command. Enter wt in the text field, press and hold the Ctrl + Shift keys, and then either click on OK or hit Enter to launch an elevated Windows Terminal.
- Click Yes on the UAC (User Account Control) prompt.
- Click on the downward arrow and select Command Prompt from the menu that appears.
- Next, type/paste the following command and hit Enter to run the SFC scan:
sfc /scannow
The SFC (System File Checker) scan is used to identify corrupt system files, and if any are found, replace them with their cached copy stored on the system. So, if it’s the corrupt system files that are causing the Windows Filtering Platform has blocked a connection problem in Windows 11, running the SFC scan should fix it.
After executing the command, wait for the scan to complete, then restart the computer and check if the problem is eliminated. If the issue still persists, you can try using a third-party repair app that has more advanced features.
4. Restart Windows Security Center
- Press Windows + R to launch the Run command. Enter services.msc in the text field, and either click on OK or hit Enter to launch the Services app.
- Locate and double-click on the Windows Defender Firewall service.
- Check if the Service status reads Running.
- If not, click on the Start button under Service status to run the service.
- Next, press Windows + S to launch the Search menu. Enter Windows Terminal in the text field, right-click on the relevant search result that appears, and select Run as administrator from the context menu.
- Click Yes on the UAC (User Account Control) prompt that appears.
- Next, execute the following command and then restart the PC:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
- After the computer restarts, paste the following command and hit Enter:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 0 /t REG_DWORD /f
Once done, again restart the computer and check if the Windows Filtering Platform has blocked a connection problem is fixed in Windows 11.
5. Disable your antivirus
NOTE
We have listed the steps to disable the built-in Windows Security app. In case you are using a third-party antivirus, check its settings or head to the FAQ section on the manufacturer’s website for the steps to disable it.
- 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 that appears.
- Click on Virus & threat protection.
- Click on Manage settings under Virus & threat protection settings.
- Next, click on the toggle under Real-time protection to disable the antivirus.
- Lastly, click Yes on the UAC (User Account Control) prompt that pops up.
Oftentimes, the antivirus is known to conflict with the network settings and lead to a bunch of errors. This the generally the case with third-party antiviruses but the built-in Windows Security is also sometimes found to be the culprit.
Hence if the above fixes haven’t worked, you can try disabling the antivirus and check if the Windows Filtering Platform has blocked a connection problem is eliminated in Windows 11.
In case the error persists, uninstall the third-party antivirus app and verify if that changes the situation. Also, check out our curated list of the best antivirus software for Windows 11.
6. Create a new local account
In many cases, it was a corruption in the user account that led to the Windows Filtering Platform has blocked a connection problem. If that’s the case, and the above methods have fixed it, you can create a new local account on your Windows 11 PC.
While there is a lot of debate around whether you should go for a Microsoft account or a Local one, the latter should be a better choice here since it’s not linked to any servers and can be used independently on the device.
Once you have created a new local account, the error should not be present in the Event Viewer anymore.
Which is better, Windows 11 or Windows 10?
With Windows 11 finally launched, most have been nothing but excited to get their hands on the latest iteration. But, a lot of users have been skeptical of the upgrade owing to various factors.
The primary reason is that they are accustomed to Windows 10 and it will take some time to get familiar with the new OS. But, that’s not a good enough reason since Windows 11 offers both a slightly better user interface along with a bunch of other features and security enhancements, meant to improve your experience.
If you too are confused between the two, go through our guide where we compare Windows 11 and Windows 10.
That’s all there is to the Windows Filtering Platform has blocked a connection problem in Windows 11 along with the most relevant fixes for it.
In case the methods listed above do not eliminate the Windows Filtering Platform has blocked a packet error, you can either perform a system restore or reset Windows 11 to its factory settings.
Tell us which fix worked and your thoughts on the whole Windows 11 vs Windows 10 debate in the comments section below.
Kazim Ali Alvi
Windows Hardware Expert
Kazim has always been fond of technology, be it scrolling through the settings on his iPhone, Android device, or Windows PC. He’s specialized in hardware devices, always ready to remove a screw or two to find out the real cause of a problem.
Long-time Windows user, Kazim is ready to provide a solution for your every software & hardware error on Windows 11, Windows 10 and any previous iteration. He’s also one of our experts in Networking & Security.
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.
How do you fix the Windows Filtering Platform has blocked a packet?
So, if it’s the corrupt system files that are causing the Windows Filtering Platform has blocked a connection problem in Windows 11, running the SFC scan should fix it. After executing the command, wait for the scan to complete, then restart the computer and check if the problem is eliminated.
What is event ID 5152?
Event 5152 indicates that a packet (IP layer) is blocked. Event 5157 and Event 5152 are general Windows Firewall security audit, you should look into the event detail of the blocked connection attempt to decide whether that attempt should be allowed.
What is event 5157?
Event ID 5157 – The Windows Filtering Platform has blocked a connection.
How do I disable WFP?
You may disable WFP by setting the value SFCDisable (REG_DWORD) in HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon. By default, SFCDisable is set to 0, which means WFP is active. Setting SFCDisable to 1 will disable WFP.
What is filtering platform packet drop?
Audit Filtering Platform Packet Drop determines whether the operating system generates audit events when packets are dropped by the Windows Filtering Platform.
What is WFP network Driver?
Windows Filtering Platform (WFP) is a set of system services in Windows Vista and later that allows Windows software to process and filter network traffic. Microsoft intended WFP for use by firewalls, antimalware software, and parental controls apps.
What is WFP driver?
Windows Filtering Platform (WFP) is a network traffic processing platform designed to replace the Windows XP and Windows Server 2003 network traffic filtering interfaces.
What is audit handle manipulation?
Audit Handle Manipulation enables generation of “4658: The handle to an object was closed” in Audit File System, Audit Kernel Object, Audit Registry, Audit Removable Storage and Audit SAM subcategories, and shows object’s handle duplication and close actions.
What is Net Filter SDK?
for Windows. NetFilter SDK is a framework for transparent filtering the data packets transmitted via network on Windows. This is a high performance proxy-less solution, compatible with antiviruses/firewalls/other network filters. Also it includes server side components, allowing to filter TCP/UDP on a gateway.
What is netsh WFP?
The netsh wfp command line allows to gather details from the WFP filering API but not to configure or write to it. This needs to be performend through the APIs of the Platforn in C++.
What is WFP in networking?
Windows Filtering Platform (WFP) is a set of API and system services that provide a platform for creating network filtering applications. The WFP API allows developers to write code that interacts with the packet processing that takes place at several layers in the networking stack of the operating system.
How can I see who modified a shared folder?
How to Detect Who Tried to Modify a File or a Folder on Your Windows File Server
- Navigate to the required file share → Right-click it and select “Properties”.
- Go to the “Security” tab → Click the “Advanced” button → Switch to the “Auditing” tab → Click the “Add” button and define auditing:
What is Netfilter64 sys?
Netfilter64. sys is a Windows driver. A driver is a small software program that allows your computer to communicate with hardware or connected devices. This means that a driver has direct access to the internals of the operating system, hardware etc.
How do you check if your computer is protected by a firewall or proxy?
To see if you’re running Windows Firewall:
- Click on the Windows Start button, and select Control Panel. The Control panel window will appear.
- Click on the Security Center link. The Security Center will appear.
- If the Firewall header says ON, you are running Windows Firewall.
What does netsh trace do?
Netsh trace filters can be used to reduce the ETL trace file size. These trace filters are ETW levels and keywords that can be applied to individual providers.
What is network command shell?
Network shell (netsh) is a command-line utility that allows you to configure and display the status of various network communications server roles and components after they are installed on computers running Windows Server.
FIX: Windows Filtering Platform has blocked a connection
by Kazim Ali Alvi
Kazim has always been fond of technology, be it scrolling through the settings on his iPhone, Android device, or Windows. And at times, unscrewing the device to take… read more
Published on
- Several users, after upgrading to Windows 11, have reported encountering the Windows Filtering Platform has blocked a connection problem.
- This is primarily because of an error encountered during the upgrade leading to the misrecognition of the Windows Firewall.
- To fix the problem, run the SFC scan, restart Windows Security Center, or create new user account, amongst other fixes listed below.
XINSTALL BY CLICKING THE DOWNLOAD FILE
- Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
- Click Start Scan to find Windows 11 issues that could be causing PC problems.
- Click Repair All to fix issues affecting your computer’s security and performance
- Restoro has been downloaded by 0 readers this month.
Windows 11, the latest iteration in the series from Microsoft, is said to be the most advanced and user-oriented. However, encountering errors remains as common, if not more than the previous version. In this article, we will be taking up the Windows Filtering Platform has blocked a connection problem.
The error arises when certain packets or connections are blocked by the Base Filtering Engine. Though the problem may seem intricate to most users, its solutions are rather simple and have been listed out in the following sections.
For those encountering the error in Windows 11, it’s likely that the upgrade didn’t go through successfully and there’s some kind of misrecognition in Windows Firewall.
But, before we head to the fixes, it’s imperative that you understand the role of the Windows Filtering Platform and its main features.
How does the Windows Filtering Platform help developers?
Windows Filtering Platform, a set of system services and API (Application Programming Interface) allows developers to create network filtering applications. It was first introduced in Windows Vista and has been a part of the Windows ecosystem ever since.
It can also be used to build independent firewalls, antivirus, amongst other network-related applications. With this, an application can access and modify packets while these are being processed.
The three main features of the Windows Filtering Platform are as follows:
- Base Filter Engine
- Generic Filter Engine
- Callout Modules
Now that you are fairly acquainted with the concept, let’s head to the most effective fixes for the Windows Filtering Platform has blocked a connection problem in Windows 11.
How can I fix the Windows Filtering Platform has blocked a connection error in Windows 11?
1. Disable the Firewall
- Press Windows + S to launch the Search menu. Enter Windows Defender Firewall in the text field at top and click on the relevant search result that appears.
- Next, click on Turn Windows Defender Firewall on or off from the list of options on the left.
- Tick the checkboxes for Turn off Windows Defender Firewall (not recommended) under both Private network settings and Public network settings, and click on OK at the bottom to save the changes.
After making the changes, restart the system and check if the Windows Filtering Platform has blocked a connection problem is eliminated in Windows 11. If not, head to the fix listed next.
2. Run DISM tool
- Press Windows + S to launch the Search menu. Enter Windows Terminal in the text field at the top, right-click on the relevant search result and select Run as administrator from the context menu.
- Click Yes on the UAC (User Account Control) prompt that pops up.
- Click on the downward-facing arrow at the top and select Command Prompt from the list of options. Alternatively, you can hit the Ctrl + Shift + 2 to launch Command Prompt in a new tab in Windows Terminal.
- Next, paste the following command and hit Enter to execute it:
DISM/Online /Cleanup-image /Scanhealth
- Finally, execute the following command:
DISM/Online /Cleanup-image /Restorehealth
3. Perform a quick SFC scan
- Press Windows + R to launch the Run command. Enter wt in the text field, press and hold the Ctrl + Shift keys, and then either click on OK or hit Enter to launch an elevated Windows Terminal.
- Click Yes on the UAC (User Account Control) prompt.
- Click on the downward arrow and select Command Prompt from the menu that appears.
- Next, type/paste the following command and hit Enter to run the SFC scan:
sfc /scannow
The SFC (System File Checker) scan is used to identify corrupt system files, and if any are found, replace them with their cached copy stored on the system. So, if it’s the corrupt system files that are causing the Windows Filtering Platform has blocked a connection problem in Windows 11, running the SFC scan should fix it.
After executing the command, wait for the scan to complete, then restart the computer and check if the problem is eliminated. If the issue still persists, you can try Restoro that has more advanced features.
4. Restart Windows Security Center
- Press Windows + R to launch the Run command. Enter services.msc in the text field, and either click on OK or hit Enter to launch the Services app.
- Locate and double-click on the Windows Defender Firewall service.
- Check if the Service status reads Running.
- If not, click on the Start button under Service status to run the service.
- Next, press Windows + S to launch the Search menu. Enter Windows Terminal in the text field, right-click on the relevant search result that appears, and select Run as administrator from the context menu.
- Click Yes on the UAC (User Account Control) prompt that appears.
- Next, execute the following command and then restart the PC:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
- After the computer restarts, paste the following command and hit Enter:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 0 /t REG_DWORD /f
Once done, again restart the computer and check if the Windows Filtering Platform has blocked a connection problem is fixed in Windows 11.
5. Disable your antivirus
NOTE
We have listed the steps to disable the built-in Windows Security app. In case you are using a third-party antivirus, check its settings or head to the FAQ section on the manufacturer’s website for the steps to disable it.
- 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 that appears.
- Click on Virus & threat protection.
- Click on Manage settings under Virus & threat protection settings.
- Next, click on the toggle under Real-time protection to disable the antivirus.
- Lastly, click Yes on the UAC (User Account Control) prompt that pops up.
Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
Oftentimes, the antivirus is known to conflict with the network settings and lead to a bunch of errors. This the generally the case with third-party antiviruses but the built-in Windows Security is also sometimes found to be the culprit.
Hence if the above fixes haven’t worked, you can try disabling the antivirus and check if the Windows Filtering Platform has blocked a connection problem is eliminated in Windows 11.
In case the error persists, uninstall the third-party antivirus app and verify if that changes the situation. Also, check out our curated list of the best antivirus software for Windows 11.
6. Create a new local account
In many cases, it was a corruption in the user account that led to the Windows Filtering Platform has blocked a connection problem. If that’s the case, and the above methods have fixed it, you can create a new local account on your Windows 11 PC.
While there is a lot of debate around whether you should go for a Microsoft account or a Local one, the latter should be a better choice here since it’s not linked to any servers and can be used independently on the device.
Once you have created a new local account, the error should not be present in the Event Viewer anymore.
Which is better, Windows 11 or Windows 10?
With Windows 11 finally launched, most have been nothing but excited to get their hands on the latest iteration. But, a lot of users have been skeptical of the upgrade owing to various factors.
The primary reason is that they are accustomed to Windows 10 and it will take some time to get familiar with the new OS. But, that’s not a good enough reason since Windows 11 offers both a slightly better user interface along with a bunch of other features and security enhancements, meant to improve your experience.
If you too are confused between the two, go through our guide where we compare Windows 11 and Windows 10.
That’s all there is to the Windows Filtering Platform has blocked a connection problem in Windows 11 along with the most relevant fixes for it.
In case the methods listed above do not eliminate the Windows Filtering Platform has blocked a packet error, you can either perform a system restore or reset Windows 11 to its factory settings.
Tell us which fix worked and your thoughts on the whole Windows 11 vs Windows 10 debate in the comments section below.
Still having issues? Fix them with this tool:
SPONSORED
If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click theStart Scan button and then press onRepair All.
Newsletter
Source: https://windowsreport.com/windows-filtering-platform-has-blocked-a-connection/