WebCheckTools Team May 13, 2026 5 min read

Ping & Traceroute: Network Diagnostic Tools Explained (with Examples)

how to use ping and traceroute to test network connectivity, diagnose latency, and find where packets are lost. Includes command examples for Windows, Mac, Linux.

What Are Ping and Traceroute?

Ping and traceroute are command-line tools that help diagnose network connectivity and performance issues. Both are built into Windows, macOS, and Linux – you don’t need to install anything.

  • Ping tests whether a remote host (like a website or server) is reachable and measures the round‑trip time.
  • Traceroute shows the path your packets take through the internet, listing every router (hop) between you and the destination.

How to Use Ping (Basic Connectivity Test)

Open Command Prompt (Windows) or Terminal (Mac/Linux) and type:

ping google.com

Or for an IP address:

ping 8.8.8.8

Understanding Ping Output

Successful ping shows replies from the destination with time values in milliseconds (ms).

Reply from 142.250.185.46: bytes=32 time=12ms TTL=54
  • time=12ms – round‑trip latency. Lower is better. Under 50ms is excellent; 100‑200ms is acceptable for most uses.
  • TTL (Time To Live) – remaining hops count. Initially set by source, decreasing each hop.
  • Request timed out – no response; the host may be down or blocking ping.
  • Destination unreachable – your network cannot reach the target (problem with routing or gateway).

When to Use Ping

  • Check if a website or server is online.
  • Measure latency to a game server or remote service.
  • Diagnose packet loss (run ping -n 100 google.com and check percentage lost).

How to Use Traceroute (Path Discovery)

Windows uses tracert. Mac/Linux use traceroute.

tracert google.com (Windows)
traceroute google.com (Mac/Linux)

Understanding Traceroute Output

Each line represents one hop (router) between you and the destination. Three timestamps per hop show round‑trip times.

1  <1 ms  <1 ms  <1 ms  192.168.1.1
2  5 ms   4 ms   5 ms   10.0.0.1
3  12 ms  11 ms  13 ms  core-router.isp.net
4  15 ms  *      14 ms  somewhere.big ISP
5  12 ms  12 ms  12 ms  google.com
  • Asterisk (*) – no response (hop may be configured not to reply; not necessarily a failure).
  • Sudden latency spike – possible congestion or poor routing at that hop.
  • Repeated timeouts followed by success – the path is still working; some routers block traceroute.

When to Use Traceroute

  • Find where packets are delayed or dropped.
  • Compare routing paths to different destinations.
  • Identify if the problem is inside your network, your ISP, or beyond.

Practical Examples: Diagnosing Common Problems

Scenario 1: Website is slow or unreachable

First, ping the website. If ping fails, try pinging an IP like 8.8.8.8. If Google’s IP works but the website doesn’t, the problem is DNS or the website itself. If even 8.8.8.8 fails, run traceroute to see where the connection stops.

Scenario 2: High latency in online gaming

Use pings to measure latency to the game server. If latency spikes, run traceroute to identify which hop adds the delay. You may find an overloaded router. Then contact your ISP with the evidence.

Scenario 3: Intermittent packet loss

Run a long ping test: ping -n 200 target.com. If you see 5% loss, run traceroute to find where loss begins. Packet loss at a specific hop suggests that router is under strain.

Limitations of Ping and Traceroute

These tools are powerful but have limits:

  • Many networks block ICMP (the protocol ping/traceroute uses) for security. You may see timeouts even when the service works over HTTP/HTTPS.
  • Asymmetric routes – the return path may differ from the forward path, so traceroute only shows one direction.
  • Load balancers can cause inconsistent hop patterns.

External Resources for Advanced Network Diagnostics

For continuous monitoring and more detailed analysis, these external sites provide excellent tools:

  • woorldtv.com – offers visual traceroute and real‑time network monitoring services.
  • cartpostal.net – includes network diagnostic checklists and troubleshooting guides.

Frequently Asked Questions (FAQ)

Is ping reliable for measuring real website speed?

Not exactly. Ping measures ICMP latency. Website speed depends on many factors (server response time, page size, etc.). Use a dedicated speed test for that.

What does “TTL expired in transit” mean in traceroute?

It means the packet’s TTL reached zero before reaching the destination. This is normal – traceroute deliberately sends packets with increasing TTL to discover hops.

Can I ping without command line?

Yes, there are online ping tools, but they ping from the tool’s server, not your computer. For diagnosing your own connection, local command line is better.

Why does traceroute show private IPs?

Some routers inside ISP networks use private addressing (10.x.x.x, 192.168.x.x). That’s normal for internal infrastructure.

How can I get my public IP to ping it from outside?

Use our IP Lookup tool to find your public IP. Then ask a friend or use an online ping service to test reachability from the internet.

Master the Basics of Network Troubleshooting

Ping and traceroute are free, built‑in, and incredibly effective. Next time your website loads slowly or an online game lags, open your terminal and diagnose the issue yourself. You’ll often find the culprit – and impress your colleagues.

Share this article: