TechBuzzPro

How to Enable Ping on Windows 10: Step-by-Step

· 6 min read · Windows & PC

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

To enable ping (ICMP echo requests) on Windows 10, you need to create a firewall rule that allows inbound ICMPv4 traffic. By default, Windows Defender Firewall blocks these requests, so other devices cannot ping your PC even though the network connection is fine. The fix takes about two minutes: open Windows Defender Firewall with Advanced Security, create a new inbound rule for Custom protocol ICMPv4, choose Echo Request, and allow the connection for all profiles. Below are the exact steps, along with common mistakes and troubleshooting.

What You'll Need

  • Administrator rights on the Windows 10 PC (you'll need to approve a UAC prompt).
  • The exact name or IP address of the PC you want to ping from another device on the same network.
  • Optional: Command Prompt or PowerShell open with admin rights if you prefer the netsh method.

Step-by-Step

  1. Open Windows Defender Firewall with Advanced Security. Press Win + R, type wf.msc, and press Enter. Approve the UAC prompt if it appears. (Menu labels can differ slightly by Windows 10 version and language, but the path below is standard.)
  2. Select Inbound Rules. In the left pane, click Inbound Rules. The center pane lists all existing inbound rules.
  3. Start a new rule. In the right pane, click New Rule…. The New Inbound Rule Wizard opens.
  4. Choose Custom. Select Custom and click Next.
  5. Set the protocol to ICMPv4. On the Protocol and Ports page, open the Protocol type drop-down and choose ICMPv4. Leave the Specific ICMP types option selected, tick Echo Request, and click Next. (Do not tick Echo Reply here; that is for outbound rules.)
  6. Apply to any IP address. On the Scope page, leave Any IP address selected for both local and remote IP addresses unless you want to restrict pinging to a specific subnet. Click Next.
  7. Allow the connection. On the Action page, select Allow the connection and click Next.
  8. Apply to all profiles. On the Profile page, tick Domain, Private, and Public so the rule works on any network type. Click Next.
  9. Name the rule. Give it a clear name such as Allow ICMPv4 Echo Request and an optional description. Click Finish.
  10. Test from another device. On a second PC, open Command Prompt and run ping <IP-address-of-the-Windows-10-PC>. You should see replies instead of “Request timed out.”

Alternative: Command Prompt method. If you prefer a single command, open Command Prompt as Administrator and run:

netsh advfirewall firewall add rule name="Allow ICMPv4 Echo Request" protocol=icmpv4:8,any dir=in action=allow

This creates the same inbound rule. To remove it later, run the same command with delete rule name="Allow ICMPv4 Echo Request" instead of add rule.

Common Mistakes

  • Creating an outbound rule instead of inbound. Ping requests arrive at your PC, so the rule must be inbound. An outbound rule will not make your PC pingable.
  • Selecting ICMPv6 when you need ICMPv4. Most local networks and tools use IPv4. If you need IPv6 ping, create a separate rule for ICMPv6 with Echo Request.
  • Forgetting to tick Echo Request. Choosing “All ICMP types” works but is broader than necessary. Echo Request is the specific type used by the ping command.
  • Blocking rules taking priority. Windows Firewall processes block rules before allow rules. If an existing block rule for ICMP exists, your new allow rule will be ignored. Check the list for any block rules and disable or delete them.
  • Not running as administrator. The wizard and netsh command both require elevation; otherwise the rule is not saved.
  • Testing from the same PC. Pinging localhost always works and does not prove the firewall rule is correct. Test from a different device on the network.

Tips

  • Restrict the rule to your local subnet (Scope step) if you only need ping from devices on your own network. This is safer than allowing any IP address.
  • Name rules clearly so you can find and remove them later. Use the same name in the netsh command for consistency.
  • If you use third-party security software, it may have its own firewall that blocks ICMP. Check its settings separately.
  • To verify the rule is active, open Windows Defender Firewall with Advanced Security and look for your rule under Inbound Rules with a green checkmark.
  • For quick testing, you can temporarily turn off Windows Defender Firewall for a specific network profile, but remember to turn it back on. Disabling the firewall entirely is not recommended.

Troubleshooting

If ping still fails after creating the rule, work through these checks in order:

  1. Confirm the rule is enabled. In wf.msc, find your rule in Inbound Rules. A green checkmark means enabled; a grey icon means disabled. Right-click and choose Enable Rule if needed.
  2. Check for block rules. Scroll through Inbound Rules for any rule with a red circle that mentions ICMP or “File and Printer Sharing (Echo Request)”. Disable or delete conflicting block rules.
  3. Verify the target IP address. Run ipconfig on the Windows 10 PC to confirm its IPv4 address. Make sure you are pinging the correct address from the other device.
  4. Test the network path. From the other device, ping the router or another device to confirm the local network works. If those fail too, the issue is not the Windows firewall.
  5. Check third-party firewalls. Temporarily disable any third-party firewall or security suite and test again. If ping works, add an exception in that software.
  6. Reset the firewall (last resort). Open Settings > Update & Security > Windows Security > Firewall & network protection > Restore firewalls to default. This removes all custom rules, including yours, so you will need to recreate the ICMP rule afterward. Note that this also removes any other custom firewall rules you have added.

Frequently Asked Questions

Why does Windows block ping by default?

Windows Defender Firewall blocks inbound ICMP echo requests to reduce the risk of network discovery and certain denial-of-service attacks. Allowing ping is safe on trusted networks but not always desirable on public networks.

Does enabling ping pose a security risk?

Allowing ICMP echo requests is generally low risk. It lets others discover that your PC is online, but it does not provide access to files or services. Restrict the rule to your local subnet if you want to limit exposure.

Can I enable ping for IPv6 as well?

Yes. Create a second inbound rule using ICMPv6 and tick Echo Request. The steps are the same, but choose ICMPv6 in the protocol drop-down.

Will this rule survive Windows updates?

Yes, custom firewall rules persist across updates and restarts. Only a firewall reset or manual deletion will remove them.

How do I disable ping again?

In wf.msc, right-click your rule and choose Disable Rule, or delete it. Alternatively, run the netsh command with delete rule name="Allow ICMPv4 Echo Request".

Does this work on Windows 11?

The same steps and netsh command work on Windows 11, since Windows Defender Firewall with Advanced Security is essentially unchanged.