Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Allow Ping in Windows 11 Firewall

· 6 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To allow ping (ICMP Echo Request) through the Windows 11 firewall, you need to enable the two predefined rules named "File and Printer Sharing (Echo Request – ICMPv4-In)" and the IPv6 equivalent. This is a quick settings change that lets other devices on your network reach your PC with a ping command. You’ll need administrator access to your PC. The steps below work for both Windows 11 Home and Pro editions.

What You'll Need

  • A Windows 11 PC with administrator privileges (you’ll be prompted to allow changes).
  • The exact name of the rule may vary slightly depending on your Windows version, but the steps below guide you to the right location.

Step-by-Step

  1. Open Windows Security: Click the Start button, type Windows Security, and press Enter. You can also open it from the system tray (shield icon) or via Settings > Privacy & Security > Windows Security.
  2. Go to Firewall & network protection: In the Windows Security window, click on Firewall & network protection (the shield with a fire icon).
  3. Open Advanced settings: Scroll down and click Advanced settings. This opens the Windows Defender Firewall with Advanced Security window. You may see a User Account Control prompt – click Yes to allow it.
  4. Select Inbound Rules: In the left pane, click Inbound Rules. This shows a list of all inbound firewall rules.
  5. Find the Ping rules: In the right pane, click Filter by and choose Rule type – but it’s easier to just scroll through the list. Look for two rules named File and Printer Sharing (Echo Request – ICMPv4-In) and File and Printer Sharing (Echo Request – ICMPv6-In). They are usually near the top, but you can use the search box in the right pane to type "Echo Request" to filter them.
  6. Enable the rules: Right-click on the ICMPv4 rule and select Enable Rule. Do the same for the ICMPv6 rule. If the rules are already enabled, you’ll see "Disable Rule" instead – that means ping is already allowed, and you can skip this step.
  7. Verify the change: Close the Advanced Security window. To test, open Command Prompt (type cmd in Start) and ping your own IP address (type ping localhost or ping 127.0.0.1). Then, from another device on the same network, try pinging your PC’s IP address. If you get replies, it works.

Note: The exact wording of the rule name may be slightly different on some Windows 11 versions (e.g., it might say "Echo Request – ICMPv4-In" without the "File and Printer Sharing" prefix). If you don’t see it, search for "ICMP" in the filter.

Common Mistakes

  • Enabling only one rule: If you only enable the IPv4 rule, devices using IPv6 (which is common on modern networks) still won’t be able to ping you. Always enable both.
  • Enabling the wrong rule: There are also "Outbound Rules" – you only need to change inbound. Also, don’t confuse the Echo Request rule with "Echo Reply" (that’s for responding to pings, not receiving them).
  • Not having admin rights: If you can’t see the Advanced settings or get an error when trying to enable the rule, you’re likely not running as administrator. Log in with an admin account or right-click Windows Security and choose "Run as administrator" (though that’s not typical).
  • Forgetting to test from another device: Pinging your own PC only tests the loopback interface, not the firewall. You must test from a different device on the network.

Tips

  • Use a custom rule if you need more control: If you want to allow ping only from specific IP addresses, you can create a new inbound rule instead of enabling the predefined ones. In the Advanced Security window, right-click Inbound Rules and choose New Rule. Select Custom, then Protocol and Ports, choose ICMPv4 (or v6), and under Scope specify the remote IP addresses.
  • Disable ping when not needed: For security, it’s often better to keep ping disabled unless you’re troubleshooting. You can easily disable the same rules later by right-clicking and selecting Disable Rule.
  • Check your router’s firewall: If you’re trying to ping from the internet (not just your local network), your router’s firewall may also block ICMP. That’s a separate setting on your router, not Windows.

Troubleshooting

If ping still doesn’t work after enabling the rules, try these in order:

  1. Restart your PC: A reboot ensures the firewall changes fully take effect.
  2. Check that the rules are actually enabled: Go back to the Advanced Security window and look at the Enabled column. It should say Yes for both rules.
  3. Verify your network profile: The rules might be applied only to certain network profiles (Domain, Private, Public). Right-click the rule, select Properties, and under Profile ensure all three checkboxes are ticked (or at least the one matching your current network type). You can see your network type in Settings > Network & internet > Wi-Fi or Ethernet – it’s labeled as "Private network" or "Public network".
  4. Test with a different device: Make sure the other device is on the same subnet and that its own firewall isn’t blocking the ping reply.
  5. Check if the other device is pinging the correct IP: Run ipconfig on your PC to see your IPv4 address (e.g., 192.168.1.10) and make sure the other device is using that.
  6. Disable and re-enable the rules: Sometimes toggling the rule off and on helps. Right-click the rule, select Disable Rule, then right-click again and select Enable Rule.
  7. Check for third-party antivirus or firewall: Some security suites have their own firewall that can overrule Windows Firewall. Temporarily disable it (or add an exception) to test.
  8. Reset the firewall to defaults (last resort): If nothing else works, you can reset Windows Firewall to its default settings. In Windows Security > Firewall & network protection, click Restore firewalls to default. This will remove all custom rules, so only do this if you’re comfortable re-adding them.

Frequently Asked Questions

Why can’t I ping my Windows 11 PC even after enabling the rules?

Most often it’s because the rules are not applied to the correct network profile (Public vs Private). Check the rule properties and ensure the profile matches your current network type.

Do I need to enable both IPv4 and IPv6 rules?

Yes, because many networks use IPv6 in addition to IPv4. If you only enable one, devices using the other protocol won’t be able to ping you.

Is it safe to allow ping?

Generally yes, but it does expose your PC to network discovery. For most home users, it’s low risk. If you’re on a public network, you might prefer to keep it disabled.

Can I allow ping for only one device?

Yes, create a custom inbound rule and specify the remote IP address in the Scope section. This gives you more control than the predefined rules.

Will this allow ping from the internet?

No, this only affects the Windows firewall. Your router also needs to allow ICMP traffic from the internet, which is often blocked by default. That’s a separate router setting.

How do I disable ping again?

Go back to the same rules in Advanced Security, right-click each one, and select Disable Rule. That’s it.