The default windows server firewall rules don't reply to ping requests. To be enable ICMP ping replies from your Windows based service, We have to enable ICMP rule from the Firewall.
Click on the Windows button and then Search the Windows Firewall with Advanced Security in the search bar and open it.
Select Inbound rules and then select File and Printer sharing(Echo Request – ICMPv4-In)
- Now right click on the selected option and then click on the Enable Rule to enable the ICMP on the server.