run the following command
netsh firewall set icmpsetting 8 enable