
To send an Internet Control Message Protocol echo request message to another TCP/IP device to confirm IP-level connectivity, enable Ping for Windows Server 2019. Along with the round-trip time, receipt of the relevant echo reply message is shown. The most used TCP/IP command for analysing connectivity, reachability, and name resolution is ping. The ICMP and ping traffic is blocked by the default installation of Windows Server 2019. Microsoft does this to protect users. However, in order to use a dedicated server, your server must accept ICMP traffic from specific hosts. To establish a cloud connection with an external host.You can monitor and resolve network issues for your host by enabling ping. This article explains how to make ping available on Windows Server 2019.We can shut off the entire Firewall in order to enable Ping. This is not advised, though, as Windows Firewall does a superb job at offering fundamental system security. Just the rules necessary for the ping to work should be allowed.
On Windows Server 2019, enable the ICMP rule to allow ping replies (GUI)
- Firstly Activate your Windows Server 2019 DS account. The Windows Firewall must then be opened. There are numerous ways to accomplish this, but we’ll use a straightforward search by entering “firewall” in the start menu. Launch it.

- Select Inbound Rules in the Windows Firewall and search for “File and printer Sharing (Echo Request – ICMPv4-In)” To enable the rule, right-click on it.

NOTE: that if you need IPv6, you must enable the “File and Printer Sharing (Echo Request – ICMPv6-In)” rule, which is specified directly below. This rule only permits IPv4 requests to enter.
- The server will reply to ping requests when enabled. Prior to and after activating the rule, I began pinging my Windows Server 2019 virtual machine at 147.124.215.128. Because incoming ICMP requests are disabled by default in Windows Server 2019, you can see from the screenshots below that the initial few requests timed out. The ping request is successful after the ICMP rule is enabled, indicating that everything is functioning as it should.

Enable Ping With PowerShell Command
To make an exception for the rules, launch” Powershell “As An Administrator” and execute the provided command.
Rule for ICMPv4:
Using the command line, add a firewall rule with the name “ICMP Allow inbound V4 echo request” and the protocol “icmpv4:8,any”
ICMPV6 rule:
Using the command line, add a firewall rule with the name “ICMP Allow Incoming V6 Echo Request” and the protocol “icmpv6:8,any”. action=allow dir
Using a PowerShell command, disable Ping
Rule for ICMPv4:
icmpv4:8,any,in,block #netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request”
ICMPV6 rule:
icmpv4:8,any,in,block #netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request”
The network security policy in your environment will determine whether to enable or disable Ping since it is a helpful tool for troubleshooting and identifying the existence of network devices. This post offered straightforward instructions for turning on and off the Ping reply using the GUI and PowerShell.
Read Our Next Articles Introducing Windows Server For Our Buisness
