Fix Windows Firewall Blocking Ping (ICMP Echo)
Local network devices cannot ping a Windows machine because the default Windows Defender Firewall rules block ICMPv4 Echo Requests.
Confirmed working on: Windows 10 · Windows 11
Before you begin
Problem overview
When you try to ping your Windows PC from another device on the network, the requests time out. However, the PC can access the internet and can ping other devices just fine. Windows Firewall blocks inbound ping requests by default.
Common causes
- Windows Defender Firewall is enabled and dropping ICMPv4 packets
- The active network profile is set to “Public” instead of “Private”
- Third-party antivirus software is overriding Windows Firewall rules
Solution 1: Change network profile to Private
- Open Settings by pressing
Windows Key + I. - Navigate to Network & internet.
- Click on your active connection (Wi-Fi or Ethernet).
- Under Network profile type, change it from Public network to Private network.
- Windows automatically enables ping and network discovery on Private profiles.
Only set your profile to Private on trusted networks, like your home or office. Never use it on public Wi-Fi at a cafe or airport.
Solution 2: Enable ICMPv4 rule in Advanced Firewall
- Press
Windows Key + R, typewf.msc, and press Enter to open Windows Defender Firewall with Advanced Security. - Click on Inbound Rules in the left pane.
- Scroll through the list and look for File and Printer Sharing (Echo Request - ICMPv4-In).
- There will be multiple entries. Find the one where the Profile is listed as Private (or All).
- Right-click that rule and select Enable Rule. The icon should turn green.
- Try pinging the machine again from another device.
Solution 3: Enable Ping via Command Prompt
- Open the Start Menu, type
cmd, right-click Command Prompt, and select Run as administrator. - Run the following command to instantly open the firewall for IPv4 pings:
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow - You should see an
Ok.response. The PC will now respond to pings.
Solution 4: Check third-party antivirus firewalls
- If you have software like Bitdefender, McAfee, or Norton installed, they manage the firewall instead of Windows Defender.
- Open your antivirus interface.
- Locate the Firewall or Network Protection settings.
- Look for an option related to “Stealth Mode,” “ICMP Replies,” or “Ping requests.”
- Allow or toggle the setting to permit incoming echo requests.
Do not completely disable your firewall just to allow pings. This exposes your system to severe vulnerabilities. Always use specific rules to allow only the traffic you need.
Confirm the result
- Repeat the exact action that originally triggered the problem.
- Confirm the original error or symptom is gone and no new warning has appeared.
- If the guide changed a driver, service, package, or system setting, restart once and test again.
- If the result is worse or unexpected, stop. Reverse only the last change using its documented restore option; if none is documented, use your backup or qualified support.
Questions about this fix
Why does Windows block ping by default?
Microsoft disables inbound ICMP echo requests on Public profiles to reduce the attack surface of a machine on untrusted networks.
Is it safe to enable ping responses?
Yes, on a private home network. It is extremely useful for diagnosing network connectivity.
Did this fix work for you?
Weighted Consensus Protocol
Did this solution resolve your issue?
Confirming if this works strengthens verification statistics on the registry.
FixingTeam10,000 rep
Official Project Maintainers
The core engineering and moderation team behind FixingBook. We curate, verify, and maintain the standards of the troubleshooting ledger.
Discussion (0)
No comments yet. Share your experience or verify if this fixed your issue!
