Skip to content
FixingBook
Verifiedbeginnerest. 10 minutes

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

Match the environmentUse this guide only for Windows 10, Windows 11 or a clearly compatible setup.
Protect recoveryBack up important data and save encryption or account recovery keys before changing system state.
Know when to stopMake one change at a time and stop if the result differs from what the guide describes.

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

  1. Open Settings by pressing Windows Key + I.
  2. Navigate to Network & internet.
  3. Click on your active connection (Wi-Fi or Ethernet).
  4. Under Network profile type, change it from Public network to Private network.
  5. Windows automatically enables ping and network discovery on Private profiles.
Expert Tip

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

  1. Press Windows Key + R, type wf.msc, and press Enter to open Windows Defender Firewall with Advanced Security.
  2. Click on Inbound Rules in the left pane.
  3. Scroll through the list and look for File and Printer Sharing (Echo Request - ICMPv4-In).
  4. There will be multiple entries. Find the one where the Profile is listed as Private (or All).
  5. Right-click that rule and select Enable Rule. The icon should turn green.
  6. Try pinging the machine again from another device.

Solution 3: Enable Ping via Command Prompt

  1. Open the Start Menu, type cmd, right-click Command Prompt, and select Run as administrator.
  2. 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
  3. You should see an Ok. response. The PC will now respond to pings.

Solution 4: Check third-party antivirus firewalls

  1. If you have software like Bitdefender, McAfee, or Norton installed, they manage the firewall instead of Windows Defender.
  2. Open your antivirus interface.
  3. Locate the Firewall or Network Protection settings.
  4. Look for an option related to “Stealth Mode,” “ICMP Replies,” or “Ping requests.”
  5. Allow or toggle the setting to permit incoming echo requests.
Caution

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

  1. Repeat the exact action that originally triggered the problem.
  2. Confirm the original error or symptom is gone and no new warning has appeared.
  3. If the guide changed a driver, service, package, or system setting, restart once and test again.
  4. 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

Consensus0%
Required100% (Weight 3)
Contributors0
Verified By YouNo
Your Weight--

Did this solution resolve your issue?

Confirming if this works strengthens verification statistics on the registry.

Sign In to VerifySign in required to verify

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.

Spotted something outdated? Suggest an edit. Maintainers review submissions within 48 hours.
Share:XReddit

Discussion (0)

No comments yet. Share your experience or verify if this fixed your issue!

Join the Discussion