---
title: 'How to allow ICMP packets in Windows Server 2022, 2019, 2016 | Zomro'
description: 'In Windows Server 2016, 2019 and 2022, ICMP or Ping is disabled by default, making the system more secure, but sometimes it brings with it some monitoring difficulties.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238462_1.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to allow ICMP packets in Windows Server 2022, 2019, 2016 



# How to allow ICMP packets in Windows Server 2022, 2019, 2016

31-10-2022

In Windows Server 2016, 2019, and 2022, ICMP or Ping is disabled by default, making the system more secure, but sometimes this brings certain difficulties in monitoring.  
  
Since the ping command indicates/shows that the remote computer is connected to the network, it is a useful command for system administrators.  
  
If you need to enable ICMP packets or ping for your own purposes or for monitoring, you can use the instructions below.  
  
It can be enabled manually without using group policies.  
  
If ICMP packets are not enabled on your computer, you will receive a timeout message.  
  
  
![How to allow ICMP packets in Windows Server 2022, 2019, 2016 - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238462_1.png)

## 

## **How to Enable Ping in Windows Firewall**

  
To enable ping in the firewall, follow these steps:  
  
Open the firewall by pressing Win+R and typing the command **firewall.cpl**.

![How to allow ICMP packets in Windows Server 2022, 2019, 2016 - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238532_11.png)

In the window that opens, click **Advanced Settings** on the right panel.

  
![How to allow ICMP packets in Windows Server 2022, 2019, 2016 - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238515_2.png)

Select **Inbound Rules** on the left panel and on the right panel **New Rule**.

  
![How to allow ICMP packets in Windows Server 2022, 2019, 2016 - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238534_3.png)

Select **File and Printer Sharing** in the **Predefined** section. And click **Next**.  
  
Select the following two rules:

  * File and Printer Sharing (Echo Request – ICMPv6-In)
  * File and Printer Sharing (Echo Request – ICMPv4-In)



  
![How to allow ICMP packets in Windows Server 2022, 2019, 2016 - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238608_4.png)

And click **Next**.  
  
Select **Allow the connection**. Click **Finish**.

  
  
![How to allow ICMP packets in Windows Server 2022, 2019, 2016 - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/10/01/1667238628_5.png)

## **How to Enable ICMP (Ping) from Command Line or PowerShell**

**​​​​​​​**

  
To do this, open the command line by pressing Win+R and typing the command cmd.  
  


### **Allow ping IPv4 from the command line:**
    
    
    netsh advfirewall firewall add rule name="ICMP Allow Ping V4" protocol="icmpv4:8,any" dir=in action=allow

###   
**Allow ping IPv4 using PowerShell:**
    
    
    New-NetFirewallRule -DisplayName "ICMP Allow Ping V4" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress <localsubnet> -Action Allow

  
If after testing and settings you need to disable ICMP packets, you can also use the command line for this.  
  


### **Block ping IPv4 from the command line:**
    
    
    netsh advfirewall firewall add rule name="ICMP Allow Ping V4" protocol="icmpv4:8,any" dir=in action=block

###   
**Block ping IPv4 using PowerShell:**
    
    
    New-NetFirewallRule -DisplayName "ICMP Allow Ping V4" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress <localsubnet> -Action Block

We also suggest you other useful articles:

  * [How to connect to the server via FTP, SFTP and SCP](https://zomro.com/blog/faq/144-kak-podkljuchitsja-k-serveru-po-ftp-sftp-i-scp)
  * [How to Install and Configure IIS FTP Server on Windows Server 2019](https://zomro.com/blog/faq/315-kak-ustanovit-i-nastroit-ftp-server-iis-na-windows-server-2019)
  * [How to connect to a Docker container via sFTP](https://zomro.com/blog/faq/306-how-to-connect-to-a-docker-container-via-sftp)



Similar articles:

[How to Install Docker on Ubuntu 20.04](https://zomro.com/blog/faq/286-kak-ustanovit-docker-na-ubuntu-2004) [Setting up DNS hosting based on the VestaCP panel](https://zomro.com/blog/faq/263-nastrojka-dns-hostinga-na-baze-paneli-vestacp) [Installing the Pterodactyl Control Panel (Ubuntu)](https://zomro.com/blog/faq/358-installing-the-pterodactyl-control-panel-ubuntu) [What is FTP and how to use it to upload files to a server?](https://zomro.com/blog/faq/543-what-is-ftp-and-how-do-i-use-it-to-upload-files-to-a-server) [How to connect to different Windows servers through one IP address](https://zomro.com/blog/faq/341-kak-podklyuchatsya-k-raznym-serveram-windows-cherez-odin-ip-adres)

[ Dedicated servers from €88.80/mon ](/dedicated-servers)
