Skip to content

Let other devices ping this PC — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10

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=allow

Undo

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

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.

pingicmpfirewallnetsh advfirewall

More in Networking

Flush the DNS cache — via Marc Abramowitz

Commandlow riskAdmin

If a website moved to a new server, or you changed DNS settings and some sites still won't load, your Mac may be holding on to old address lookups. Flushing the DNS cache makes it look them up fresh. It's a troubleshooting step, not a speed boost.

Run Apple's built-in internet speed test — via SS64

Commandlow risk

macOS has its own speed test in Terminal. Besides download and upload speed, it measures 'responsiveness' (round trips per minute while the line is busy), which explains why video calls stutter on a connection that looks fast.