Let other devices ping this PC — via Microsoft Learn
If pinging this PC from another device times out even though the PC is on, the firewall is probably dropping the requests. One inbound rule allows IPv4 echo requests (ping).
Takes effect right away
Command
Run in an administrator Command Prompt / Terminal window.
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allowUndo
netsh advfirewall firewall delete rule name="ICMP Allow incoming V4 echo request"Turning on File and Printer Sharing also enables Windows' own File and Printer Sharing (Echo Request - ICMPv4-In) rule. The rule above applies to all network profiles; add profile=private to allow ping only on home networks.Sources
- Use netsh advfirewall firewall instead of netsh firewall — Configure ICMP settings — by Microsoft Learn
- Error 0x000006D9 when sharing a printer — rules enabled by sharing — by Microsoft Learn
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.