Ping sends ICMP Echo requests and reports whether replies arrive, together with their round-trip times. It does not test an HTTP response, establish that a TCP port is open or measure download throughput. A successful ping and a failing website can therefore coexist.
Use a bounded test
Replace this illustrative local address with a destination you are authorized to test. On Windows:
ping -n 4 192.168.1.1
On Linux and macOS:
ping -c 4 192.168.1.1
Options are not interchangeable across implementations. Windows uses -n for count; Linux iputils uses that letter for another purpose. Consult the Windows reference or iputils manual for the implementation in front of you.
Separate the fields from the assumptions
This is an explanatory example, not an observed test result:
Reply from 192.168.1.1: bytes=32 time=2ms TTL=64
timeis a round trip, not a one-way delay.byteshere describes ICMP data size, not the complete Ethernet frame.TTLbelongs to the received reply. An unknown initial value prevents an exact hop count.
A universal “under 50 ms is good” threshold is misleading. An adjacent device and an intercontinental service have different expected paths. Variation, loss and application requirements matter alongside the average.
Different errors require different checks
If the name cannot be resolved, the test may not have reached the stage of sending probes to a destination IP. Investigate name resolution first. A timeout means no reply arrived within the wait interval; a silent target, filtering or a return-path problem can all produce it. An unreachable message may come from your own system or an intermediate device, so record who generated it.
When comparing a hostname with a numeric address, make sure both tests concern the same endpoint and address family. A hostname can have several A and AAAA answers. Working IPv4 does not establish working IPv6, and different resolved addresses may lead to different paths.
Choose the next test from the observation
Start with the active gateway, then an authorized remote destination. If ping succeeds but an application fails, inspect the service port, TLS error or application response rather than disabling the firewall wholesale. If HTTPS works but ping does not, do not call the whole host unreachable from ICMP alone.
For an intermittent issue, record the time, destination, connection type and sample size. Four successful replies do not establish all-day reliability. Longer observations should respect the sampling and response-handling limits described in the packet-loss guide.