How to Enable & Disable Ping (ICMP Echo Requests) in Windows Server 2025 Firewall

2025-03-19 By Nathan 506 Views windows firewall ping security
0 reviews

Ping (ICMP Echo Requests) is a fundamental tool for diagnosing network connectivity issues. It helps determine whether a server is reachable and measures the response time. However, due to security concerns, Ping requests are often blocked by the Windows Server firewall by default. Enabling Ping allows administrators to troubleshoot network problems efficiently, while disabling it enhances security by preventing potential attacks.


pingdiagram


This guide provides clear, step-by-step instructions to enable and disable Ping (ICMP Echo Requests) in Windows Server 2025.


To Enable Ping for IPv4


  1. Open the Windows Firewall settings.

    • Press Windows key + R to open the Run dialog box.

    • Type firewall.cpl and press Enter to open the Windows Firewall settings.

    windows25ping1

  2. Click on Advanced settings in the left-hand menu and can see the Windows Defender Firewall with Advanced Security window.

    windows25ping2

  3. Navigate to Inbound Rules on the left panel.

    windows25ping3

  4. Locate the rule named File and Printer Sharing (Echo Request - ICMPv4-In) in the list.

    windows25ping4

  5. Right-click the rule and select Enable Rule. This allows incoming ICMP Echo Requests (Ping) for IPv4.

    windows25ping5

  6. Close the firewall settings.

  7. Verify that Ping is enabled by opening the Command Prompt (cmd) and running the following command:

    # ping <server-ip>
    

    windows25ping6


    If Ping is enabled, you should receive responses from the server.


To Enable Ping for IPv6


  1. Follow steps 1–3 from the IPv4 section.

  2. Locate File and Printer Sharing (Echo Request - ICMPv6-In) under Inbound Rules.

    windows25ping7

  3. Right-click the rule and select Enable Rule.

    windows25ping8

  4. Close the firewall settings and verify IPv6 Ping using:

    # ping -6 <server-ip>
    


To disable Ping for IPv4


  1. Follow steps 1–4 from the IPv4 section.

  2. Locate File and Printer Sharing (Echo Request - ICMPv4-In) and Right-click the rule and select Disable Rule.

    windows25ping9

  3. Close the firewall settings.


To disable Ping for IPv6


  1. Follow steps 1–4 from the IPv4 section.

  2. Locate File and Printer Sharing (Echo Request - ICMPv6-In) under Inbound Rules and Right-click the rule and select Disable Rule.

    windows25ping10

  3. Close the firewall settings.


By following these steps, you can control ICMP Echo Requests (Ping) functionality on your Windows Server 2025, enabling or disabling it based on your security and troubleshooting needs.


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.