By default, many Windows servers block ICMP (ping) requests via the firewall for security reasons. If you'd like to enable ping to test network connectivity, follow these steps:
Open Windows Defender Firewall
Press Windows + R
, type firewall.cpl
, and press Enter.
Or, go to Control Panel > System and Security > Windows Defender Firewall.
Open Advanced Settings
Click on Advanced settings in the left pane to open Windows Defender Firewall with Advanced Security.
Create a New Inbound Rule
In the left pane, click Inbound Rules.
In the right pane, click New Rule…
Allow ICMP (Ping) Traffic
Select Custom, then click Next.
Under Program, select All programs, then click Next.
Under Protocol and Ports, select ICMPv4 from the Protocol Type drop-down.
Click Next through the scope and action pages, selecting Allow the connection.
On the profile page, make sure Domain, Private, and Public are checked (or adjust to your environment).
Give the rule a name like "Allow ICMP Ping", then click Finish.
Confirm Ping is Working
On another machine, open Command Prompt and type:
ping your-server-ip
If successful, your server will respond to ping requests.
Ping helps diagnose connectivity issues.
Useful for monitoring tools and uptime checks.
Can confirm your VPS is online and reachable.
⚠️ Be cautious when enabling ping on public-facing servers. While useful, it can expose your server to unwanted scans. Consider restricting ICMP only to trusted IPs if security is a concern.