Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Ping tests whether an address answers ICMP echo requests; it does not prove that a website is working. For a useful availability check, combine a host-level ping with DNS resolution and an HTTP request to the exact URL. This guide shows the commands, explains every common result, and gives a repeatable troubleshooting path for Linux and macOS (with platform differences called out).

What ping actually tests

The ping utility sends ICMP ECHO_REQUEST packets and waits for ICMP ECHO_REPLY packets from a host or gateway. A reply demonstrates that an endpoint on the path answered that protocol. It does not fetch HTML, execute application code, validate TLS, or confirm that the expected page content is present.

That distinction prevents two common mistakes:

  • Ping succeeds, website fails: the host or network edge is reachable, but DNS-to-application routing, the web server, TLS, authentication, URL, or application itself may be broken.
  • Ping fails, website works: firewalls and providers often filter or deprioritize ICMP while allowing HTTPS. A timeout is not proof that the site is down.

Packet loss and latency describe the selected probe path during the selected interval. They are not automatically the same as a visitor’s page-load experience.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run a basic ping

Linux

Open a terminal and run:

ping example.com

Stop the continuous test with Ctrl+C. For a script or a bounded check, Linux iputils supports a packet count:

#1 Best Overall
TESMEN TLP-123A Network Cable Tester for RJ11 RJ45, Ethernet Wire Tool for CAT5/CAT5E/CAT6/CAT6A/CAT7/UTP&STP, LAN & TEL Continuity Test, Suitable for Cable Maintenance - Green
  • Multifunctional Network Cable Tester: TESMEN TLP-123A Supports RJ45 and RJ11, enabling rapid detection of line connectivity, short circuits, open circuits, miswiring, and cable shielding status. An essential tool for troubleshooting line faults and network maintenance, it effectively boosts your work efficiency
  • Convenient and Efficient: Featuring one-button operation and a test speed adjustment gear on the main control unit for enhanced flexibility. Clear LED indicators provide intuitive test result displays, making it easy for both professionals and home users to operate
  • Portable and Durable: Compact and lightweight design for easy portability. Constructed with high-quality plastic housing for robust structure, ensuring both durability and stability. Ideal for home wiring, IT equipment setup, electrical maintenance, and LAN DIY projects
  • Detachable design: The main control unit and remote unit can be separated and used independently, allowing you to test both ends of long cables. This makes it ideal for wall-mounted ports, long-distance cabling, or structured cabling systems, perfect for homes, offices, or professional IT environments
  • What you will get: 1 * TLP-123A Network Cable Tester, 1 * user manual, 2 * AAA batteries
ping -c 4 example.com

The command exits with status 0 when the requested test completes successfully, status 1 when no replies arrive (or the requested count is not met by the deadline), and status 2 for other errors. Check the status in a shell script with $? immediately after the command.

macOS and other Unix-like systems

Run ping example.com and stop with Ctrl+C. macOS also accepts -c for a finite number of packets:

ping -c 4 example.com

Flags, timeout defaults, output wording, and exit behavior can differ between operating systems. Use man ping on the machine that will run your script rather than assuming Linux options are portable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Test an IP address separately

ping 203.0.113.10

If the IP responds but the hostname does not, investigate DNS or the hostname’s address family. If neither responds, continue with the layered checks below; ICMP may simply be blocked.

Verify that DNS resolves

Before interpreting a ping timeout, confirm that the name maps to an address:

getent hosts example.com

On systems without getent, use:

nslookup example.com

or:

dig example.com

A DNS failure means the client cannot reliably select a destination; it is a different problem from an ICMP timeout. Compare answers from another network or resolver when investigating a suspected DNS incident.

Rank #2
Klein Tools VDV526-200 LAN Scout Jr Cable Tester Ethernet Cable Tester Kit
  • VERSATILE CABLE TESTING: Cable tester for data (RJ45) terminated cables and patch cords, ensuring comprehensive testing capabilities
  • LARGE BACKLIT LCD: Backlit LCD display enables easy reading of pin-to-pin wiremap results, even in low-lit areas
  • COMPREHENSIVE FAULT DETECTION: Test for Open, Short, Miswire, Split-Pair faults, Cross-over, and Shield, providing thorough fault detection
  • INTUITIVE USER INTERFACE: User-friendly interface with three buttons and simple, easy-to-identify test responses, ensuring a smooth testing experience
  • MULTIPLE TONE GENERATOR STYLES: Tone on a single wire, wire pair, or all 8 conductor wires using the multiple style tone generator (solid/warble); requires probe Cat. No. VDV500-123 (sold separately)

Check the website with HTTP

Start with headers

Use curl to request the URL’s headers:

curl -I https://example.com/

-I uses the HTTP HEAD method. Some servers, proxies, and application frameworks deny or mishandle HEAD even though GET works. In that case, make a GET request while discarding the body and printing the response code:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -sS -o /dev/null -w '%{response_code}
' https://example.com/

curl considers a transfer successful when it received an HTTP response; a 404, 500, or other status is not automatically a curl transfer error. Add --fail when a script should treat HTTP 400 and higher as an error:

curl --fail -sS -o /dev/null -w '%{response_code}
' https://example.com/

Keep the printed status when diagnosing redirects, authentication, or an endpoint whose normal response is not 2xx. A redirect may be healthy, while a protected endpoint may correctly return 401 or 403.

Inspect the complete exchange

curl -v https://example.com/

Verbose output shows name resolution, connection attempts, TLS negotiation, request headers, redirects, and response headers. Do not paste credentials or private cookies from this output into a public ticket.

Use both tests as a decision tree

Ping HTTP request Likely interpretation and next action
Replies Expected response Basic reachability and this URL’s application response are present from this location. Continue with content or transaction checks if required.
Replies Timeout, TLS error, or 4xx/5xx ICMP works, but the web layer may have a service, certificate, routing, authentication, URL, or application problem. Use curl -v and inspect server-side logs.
Timeout Expected response ICMP is probably filtered or deprioritized, or the ping path differs from HTTPS. Do not label the site down solely from ping.
Timeout Timeout or connection failure There is a reachability problem from this probe, but it could be DNS, routing, firewall, host, TLS, or service failure. Repeat from another network and test the resolved IP where appropriate.
Replies 404 or other intentional status The server answered. Check that the URL and method are correct; transport success and application success are separate conditions.

Test IPv4 and IPv6 independently

A hostname can have both address families, with one path broken. On systems that provide them:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ping -4 -c 4 example.com
ping -6 -c 4 example.com
curl -4 -sS -o /dev/null -w '%{response_code}
' https://example.com/
curl -6 -sS -o /dev/null -w '%{response_code}
' https://example.com/

Use the equivalent options documented by your platform. A failure in only one family points to an address, routing, firewall, or service configuration specific to that family.

Rank #3
Klein Tools VDV501-851 Scout Pro 3 Tester Starter Set Cable Tester
  • VERSATILE CABLE TESTING: Cable tester tests voice (RJ11/12), data (RJ45), and video (coax F-connector) terminated cables, providing clear results for comprehensive testing on unenergized Ethernet cables (not designed to test PoE)
  • EXTENDED CABLE LENGTH MEASUREMENT: Measure cable length up to 2000 feet (610 m), allowing for precise cable length determination
  • COMPREHENSIVE FAULT DETECTION: Test for Open, Short, Miswire, or Split-Pair faults, ensuring thorough fault detection and identification
  • BACKLIT LCD DISPLAY: Backlit LCD screen displays cable length, wiremap, cable ID, and test results, ensuring easy readability in various lighting conditions
  • EFFICIENT CABLE TRACING: Trace cables, wire pairs, and individual conductor wires using the multiple style tone generator (requires analog probe Cat. No. VDV500-123, sold separately), simplifying cable tracing tasks

Why ping times out when the website works

ICMP filtering

Host firewalls, cloud security groups, transit providers, and load balancers can drop echo requests. HTTPS may terminate at a different edge system and continue normally.

Rate limiting and deprioritization

Routers may delay or discard diagnostic packets under load. Occasional loss does not establish equivalent loss for TCP or page traffic.

Different paths and destinations

DNS can return geographically or topologically different addresses. The ICMP responder may be a gateway, while HTTPS reaches a CDN or reverse proxy. Compare the resolved addresses and run the HTTP check from the same network.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

IPv4/IPv6 mismatch

One family can be unreachable while the other serves the page. Force each family to isolate the fault.

When both ping and HTTP fail

  1. Resolve the hostname with dig, nslookup, or getent hosts.
  2. Try the URL from a second connection, such as mobile data, to separate local-network trouble from a broad outage.
  3. Use curl -v to identify whether failure occurs during DNS, TCP connect, TLS, redirect, or response handling.
  4. Check local and upstream firewall rules, proxy settings, VPN routes, and the destination’s security controls.
  5. Compare the result with the service’s own status information and server logs before changing DNS or restarting production systems.

Make a scriptable availability check

A minimal Bash check can keep the layers separate:

#!/usr/bin/env bash
set -u
host="example.com"
url="https://example.com/"

if ping -c 4 "$host" >/tmp/ping.out 2>&1; then
  echo "ICMP: replies received"
else
  echo "ICMP: no successful reply (may be filtered)"
fi

code=$(curl -sS -o /dev/null -w '%{response_code}' --max-time 20 "$url")
status=$?
if [ "$status" -eq 0 ]; then
  echo "HTTP: $code"
else
  echo "HTTP transfer failed (curl exit $status)"
fi

Set timeouts appropriate to your service and record the probe location, timestamp, URL, address family, status code, and latency. Do not page an on-call engineer on one failed sample without retries or corroboration.

Recurring monitoring versus a one-time test

Manual ping and curl answer an immediate diagnostic question. Scheduled external monitoring is appropriate when you need alerts, checks from multiple regions, or a public status page. Choose a service by its check types (HTTP, TCP, and ICMP), probe geography, interval, timeout and retry policy, alert channels, status-page support, and plan limits.

Rank #4
Network Ethernet Cable Tester for LAN RJ45 RJ11 CAT5 CAT5E CAT6 CAT6A CAT7, Ethernet Wire Tester Tool UTP/STP Continuity Test for Telephone Line Finder Home Repair (HT812A)
  • Multi-Function Network Cable Tester: Supports RJ45 (CAT5, CAT5e, CAT6, CAT6A, CAT7) and RJ11 telephone cables. Quickly detects continuity, short circuits, open wires, miswiring, and cable shielding status, ensuring your LAN or phone lines are correctly wired and ready to use.
  • Fast/Slow Mode with LED Indicators: Switch between fast and slow scan speeds to identify wiring issues more precisely. LED lights on both master and remote units show wire order, making it easy to spot errors like open pairs or misaligned pins at a glance.
  • Split-Type Design for Long-Distance Testing: Master and remote units can be detached and used separately, allowing you to test both ends of a long cable run, ideal for wall-mounted ports, long runs, or structured cabling. Perfect for home, office, or professional IT setups.
  • Compact, Lightweight & Durable: Ergonomically designed with sturdy ABS housing, this pocket-sized tester is ideal for on-the-go network engineers, DIYers, and electricians. It’s your go-to toolkit for cable maintenance, upgrades, or new installations.
  • Safe & Easy to Use: Simple one-button operation makes testing quick and hassle-free. LED indicators clearly show wiring status, while the G light instantly identifies shielded (FTP/STP) or unshielded (UTP) cables. Supports safe testing of telephone lines with typical voltages under 48-72V, ideal for both home and professional use.

Vendor settings are not universal standards. For example, Uptime.com documents a configuration using five ICMP packets per check and selectable intervals from one minute to one hour. Uptimehub describes recurring ICMP and TCP checks, six regions, alerts, and status pages. Treat those as each provider’s stated features, not a generally correct threshold.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

When the question is “what does a real page look like?” rather than “does ICMP answer?”, ScreenshotNeo provides a website screenshot API and MCP server. One GET request returns PNG, JPEG, WebP, or PDF and can exercise the page at the application layer.

For the documented API options and authentication details, see the ScreenshotNeo documentation. A basic call is:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Equivalent Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Equivalent Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, with the result identified by X-Page-Verdict and X-Billed headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

Troubleshooting checklist

“Unknown host” or no DNS answer

Verify spelling, the zone’s records, local resolver configuration, and whether a VPN or split-DNS policy is required. Query a second resolver before changing authoritative records.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Request timed out” from ping

Run the HTTP test. If HTTPS works, record ICMP filtering rather than opening a firewall solely to make ping green.

curl reports a certificate error

Check the system clock, certificate chain, hostname, SNI, and interception proxies. Do not disable certificate verification as a production fix.

Best Value
Klein Tools VDV500-705 Wire Tracer Tone Generator and Probe Kit for Ethernet, Internet, Telephone, Speaker, Coax, Video, and Data Cables RJ45, RJ11, RJ12
  • EASY WIRE TRACING: Simple analog tone generator and wire tracing probe for open-ended, non-active low-voltage wires, making wire tracing hassle-free (<60v)
  • OPTIMIZE SIGNAL FOR BEST RESULTS: Separate wires when possible and use proper grounding to improve tone detection and accuracy
  • ALLIGATOR CLIPS INCLUDED: Comes with alligator clips for easy connection to unterminated wires, providing convenience during testing
  • RJ45 TO RJ45 TEST CABLE: Includes an RJ45 to RJ45 test cable for seamless connectivity during testing and wire mapping
  • COMPREHENSIVE WIRE MAPPING: Toner and probe together perform a pin-to-pin wire map test, ensuring thorough wire mapping and identification

HEAD returns 403 or 405

Use the GET form with -o /dev/null. The endpoint may intentionally reject HEAD.

curl shows 404 or 500 but exits successfully

That is an HTTP response, not a transfer failure. Inspect the status explicitly and add --fail only when your script should classify 400-and-higher responses as errors.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Results disagree between networks

Compare DNS answers, IPv4 versus IPv6, proxy/VPN settings, CDN geography, and firewall allowlists. Preserve timestamps because routing and deployments change.

Frequently Asked Questions

Can I ping a URL path such as /login?

No. Ping accepts a host or IP address, not an HTTP path. Use curl or another HTTP client for the complete URL.

Does a successful ping prove my server is secure?

No. It only reports an ICMP response. Security, TLS configuration, authentication, and application behavior require separate tests.

Should monitoring use ICMP or HTTP?

Use the check that represents the failure users care about. HTTP validates the web endpoint; ICMP can add useful network reachability context but may be filtered.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.