Command Reference

ping

Command Prompt Networking Beginner Risk: Low
Back to Command Library

Summary

Tests whether a remote host can be reached and measures basic response time using ICMP echo requests.

Syntax

ping [options] target

Examples

ping <default-gateway-address>

Tests whether the local router or gateway responds without relying on DNS. Replace the placeholder with the gateway shown by ipconfig.

ping example.com

Tests whether the hostname resolves. A lack of ICMP replies does not prove that the website is unavailable.

ping -t <approved-host>

Sends echo requests continuously to an approved host until the command is stopped with Ctrl+C.

ping -n 5 <approved-host>

Sends exactly five echo requests to an approved host.

ping -4 example.com

Forces the command to resolve and test using IPv4.

Permissions

Administrator required: No

Standard ping tests normally do not require administrator access.

Risk and Impact

Risk level: Low

Changes the system: No

Ping does not modify the system. Some hosts or firewalls may block ICMP traffic, so a failed test does not always mean the destination is offline.

Supported Platforms

Windows 10 Windows 11 Windows Server

Important Output Fields

Reply from

Shows the address of the device that responded.

Bytes

Shows the size of the ICMP response.

Time

Shows the round-trip response time in milliseconds.

TTL

Shows the remaining Time to Live value in the response packet.

Packets sent, received, and lost

Summarizes whether packets reached the destination and returned.

Minimum, maximum, and average

Summarizes round-trip timing across the completed tests.

Common Errors

Request timed out

No ICMP reply was received before the timeout. The destination may be unavailable, unreachable, or blocking ping traffic.

Destination host unreachable

A local device or router could not find a valid route to the destination.

Ping request could not find host

The hostname could not be resolved. Check spelling and DNS configuration.

General failure

The local system could not send the request, often because of an adapter, routing, or TCP/IP configuration problem.

Official References

ping

Microsoft Learn · Official Documentation

Open Source