Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Allow Ping in the Windows Server 2022 Firewall

This guide shows you how to let your Windows Server 2022 answer ping requests. This helps you check if the server is online.

Windows Hosting2 min read11 steps5 screenshots

What is ping?

Ping is a small test message sent to a computer. If the computer answers, it is alive and reachable. It is like knocking on a door to see if someone is home. By default, the Windows firewall blocks ping. A firewall is a guard that decides what traffic may enter the server. Ping uses a message type called ICMP.

You need admin rights. Allowing ping is low risk, but it does make your server easier to find. Turn it off again if you do not need it.

Method 1: Windows Firewall window

  1. Click Start and type Windows Defender Firewall with Advanced Security. Open it.
    click-windows-firewall
    click-advanced-settings
  2. Click Inbound Rules in the left panel.
  3. Look for File and Printer Sharing (Echo Request - ICMPv4-In). Use the Name column to find it.
    Inbound Rules
  4. Right-click the rule that matches your network profile and choose Enable Rule. If there are several, enable the ones marked for Domain and Public or Private as needed.
  5. If you also use IPv6, enable the ICMPv6-In rule in the same way.
    enable-the-file-and-printer-sharing

IPv4 and IPv6 are the two kinds of internet addresses. IPv4 looks like 203.0.113.10.

Method 2: Command line

  1. Open Command Prompt as administrator.
  2. Run this command:
    netsh advfirewall firewall add rule name="Allow ICMPv4 Ping" protocol=icmpv4:8,any dir=in action=allow
    This command creates a new rule that lets ping requests in.
  3. To switch it off later, run:
    netsh advfirewall firewall delete rule name="Allow ICMPv4 Ping"
    This deletes the rule you made.

Method 3: PowerShell

New-NetFirewallRule -DisplayName "Allow Ping" -Protocol ICMPv4 -IcmpType 8 -Direction Inbound -Action Allow

This command adds an allow rule for ping in PowerShell.

Test it

  1. On another computer, open Command Prompt.
  2. Type ping followed by a space and your server IP address, then press Enter.
  3. You should see "Reply from" lines.
Tip: If you still get "Request timed out", another firewall may be in the way, such as one from your host. Ask Hostvento support.

Quick recap

  • Ping checks if a server answers. Windows blocks it by default.
    windows-server-2022
  • Enable the Echo Request - ICMPv4-In inbound rule.
  • Or add a rule with netsh or PowerShell.
  • Test with ping from another computer.