How to Allow Ping in Windows 10
To make a Windows 10 PC reply to ping, allow inbound ICMPv4 Echo Request traffic in Windows Defender Firewall. ICMP stands for Internet Control Message Protocol and helps diagnose connectivity. Keep the firewall on and scope the rule to your test device and network profile.
Identify the receiving PC and the test device
Make the change on the Windows 10 PC that will receive ping, using an administrator account. Check the IPv4 addresses of both devices. On Windows, run ipconfig in Command Prompt and look at the active network adapter.
You may already see File and Printer Sharing (Echo Request - ICMPv4-In) in the inbound list. Check its profile and scope before using it. A separately named rule makes a temporary test easier to undo. Avoid enabling the entire sharing group.
Allow IPv4 ping from the test device
- Open wf.msc from Start. You can also go through Control Panel → System and Security → Windows Defender Firewall → Advanced settings. Select Inbound Rules and then New Rule.
- Choose Custom and All programs. On Protocol and Ports, set Protocol type to ICMPv4.
- Select Customize, choose Specific ICMP types, and select Echo Request only. This rule applies to IPv4. IPv6 ping requires a separate ICMPv6 Echo Request rule.
- On Scope, add only the test computer’s address under remote IP addresses. If the sending computer is 192.168.1.30, add that address alone.
- Choose Allow the connection and select only the profile used for the test. For example, select Private for a trusted home network already configured as Private. Give the rule a clear name and finish.
Microsoft Learn guide to inbound ICMP rules
Test the reply from another computer
Run the example below in Command Prompt on the sending computer. Replace 192.168.1.25 with the receiving PC’s actual IPv4 address.
ping -4 -n 4 192.168.1.25
A successful reply displays a round-trip time. Testing from a separate computer checks the inbound path that the rule is meant to cover.
A reply confirms ICMP connectivity. A file share or remote-access service needs its own check.
Microsoft Learn reference for the ping command
If there is no reply or you have finished testing
If the request times out, check the destination IP, whether the rule is enabled, its remote address scope, and the receiver’s current network profile. Wi-Fi client isolation or an organization’s policy can also prevent communication.
To undo the temporary change, find the rule by name in Inbound Rules and choose Disable Rule. If you no longer need it, verify the name and delete just that rule.



