How to allow ICMP Echo Reply on Windows Server 2019?. The default setting of Windows Server Firewall is to block ICMP. This means the Server will never reply to ping packets from other hosts even within your Local network. Here I’ll show you the steps to allow ICMP Echo Reply on Windows Server 2022/2019. The procedure will be similar for Windows Desktop operating systems.

Allow ICMP Echo Reply on Windows Server 2019/2022

We are going to consider two options that can be used to allow ICMP Echo Reply on Windows Server 2019 or Windows Server 2022.

1. Enable ICMP Echo Reply using PowerShell

We can use PowerShell as Administrator to enable echo reply on our Windows machine.

Launch PowerShell as Admin and run the following commands to add Firewall rule that will accept echo reply on the server.

New-NetFirewallRule `
-Name 'ICMPv4' `
-DisplayName 'ICMPv4' `
-Description 'Allow ICMPv4' `
-Profile Any `
-Direction Inbound `
-Action Allow `
-Protocol ICMPv4 `
-Program Any `
-LocalAddress Any `
-RemoteAddress Any 

Confirm the settings by checking Firewall Rules.

PS C:\Users\Administrator> Get-NetFirewallRule | Where-Object Name -Like 'ICMPv4' 

Name                  : ICMPv4
DisplayName           : ICMPv4
Description           : Allow ICMPv4
DisplayGroup          :
Group                 :
Enabled               : True
Profile               : Any
Platform              : {}
Direction             : Inbound
Action                : Allow
EdgeTraversalPolicy   : Block
LooseSourceMapping    : False
LocalOnlyMapping      : False
Owner                 :
PrimaryStatus         : OK
Status                : The rule was parsed successfully from the store. (65536)
EnforcementStatus     : NotApplicable
PolicyStoreSource     : PersistentStore
PolicyStoreSourceType : Local

2. Enable ICMP Echo Reply from Desktop GUI

Login to your Windows Server 2019/2022 from Login screen or via RDP and click on Server Manager:

enable rdp windows server 2019 01

Then navigate to:

Tools > Windows Defender Firewall with Advanced Security

Allow ICMP Echo Reply Windows Server 2019 01

Select Inbound Rules from the left pane and click New Rule under Actions on the right pane.

Allow ICMP Echo Reply Windows Server 2019 02

Select Custom rule to add and click “Next“.

Allow ICMP Echo Reply Windows Server 2019 03

Select All programs in the next window. then click Next.

Allow ICMP Echo Reply Windows Server 2019 04

Under Protocol Type, select ICMPv4.

Allow ICMP Echo Reply Windows Server 2019 05

Specify source IP or network to accept ping from. You can use “Any IP address” to accept ping from any IP.

Allow ICMP Echo Reply Windows Server 2019 06

Accept connection matching the rule.

Allow ICMP Echo Reply Windows Server 2019 07

Choose Profiles the rule will apply for.

Allow ICMP Echo Reply Windows Server 2019 08

Give the rule a name and optional description then save settings using “Finish“.

Allow ICMP Echo Reply Windows Server 2019 09

If you’re using IPv6, do the same and choose ICMPv6 under Protocol Type .

Allow ICMP Echo Reply Windows Server 2019 10

Also check:

LEAVE A REPLY

Please enter your comment!
Please enter your name here