Control Panel / System and security / Windows Firewall / Advanced settings / Inbound rules / New rule –> Custom rule
At Protocol and ports: select Protocol: ICMPv4 then go to customize and choose “Specific ICMP types” and check the box “echo request”.
Next / Next / …