How to Ping a Website (Windows, Mac and Online), and Why It Can Fail
Ping any website from Windows, Mac or your browser, read the results in plain words, and find out why a ping can fail even when the site works fine.
To ping a website, open Command Prompt on Windows or Terminal on Mac and Linux and type ping example.com. Each reply shows how many milliseconds the server took to answer. If you would rather not use the command line, our online Ping Website tool does it from your browser in a few seconds.
A ping is quick, but it is easy to misread. Below: the commands for each system, how to read the numbers, and why a ping can fail while the website loads perfectly.
What ping tells you (and what it does not)
The classic ping command sends small ICMP "echo request" packets to a server and times the "echo reply" that comes back. It answers three questions: does the name resolve to an IP address, does that address answer, and how long does the round trip take.
It does not tell you whether the website works. A server can answer pings while its web server is down, and many servers that host perfectly healthy websites ignore pings on purpose. Ping also says nothing about how fast a page loads; it times one tiny packet, not HTML, images and scripts.
Ping a website online, no command line
- Open Ping Website.
- Type a domain or URL, for example
seopeck.com, and click the button. - Watch four results appear, one per second, then the summary with how many succeeded.
Our Ping tool works a little differently from the command. It sends four HTTPS requests from our server to the site and times each one, including the connection and the server's reply. A request that fails or takes longer than 5 seconds counts as lost. Because it uses the web port rather than ICMP, it still gets an answer from sites that block classic pings, and the times reflect how fast the web server really responds. They are higher than an ICMP ping to the same server, because a web request does more work.
The requests come from one place, our server. To see how a site answers from other countries, use the Global Ping Test. It runs real ICMP pings (or TCP pings to a port you choose) from 3 to 15 test locations at once, worldwide or in a region or country you pick, through the free Globalping probe network, and shows the minimum, average and maximum time and the packet loss for each location.
Ping on Windows
Open Command Prompt or PowerShell and run:
ping seopeck.com
Windows sends four pings and stops. A real result:
Pinging seopeck.com [84.32.84.58] with 32 bytes of data:
Reply from 84.32.84.58: bytes=32 time=167ms TTL=53
Reply from 84.32.84.58: bytes=32 time=177ms TTL=53
Reply from 84.32.84.58: bytes=32 time=177ms TTL=53
Reply from 84.32.84.58: bytes=32 time=185ms TTL=53
Ping statistics for 84.32.84.58:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 167ms, Maximum = 185ms, Average = 176ms
Useful options:
ping -n 10 seopeck.comsends 10 pings instead of 4.ping -t seopeck.comkeeps pinging until you press Ctrl+C. Handy for watching a connection while you change something.ping -4orping -6forces IPv4 or IPv6.
PowerShell also has Test-Connection seopeck.com -Count 4, which prints the same information as a table. In PowerShell 7, Test-Connection seopeck.com -TcpPort 443 tests the web port instead and returns True or False.
Ping on Mac and Linux
Open Terminal and run:
ping -c 4 seopeck.com
Unlike Windows, Mac and Linux keep pinging until you press Ctrl+C, so -c 4 stops after four. Each line looks like 64 bytes from 84.32.84.58: icmp_seq=0 ttl=53 time=170 ms, and a summary with packet loss and min/avg/max times follows at the end. For IPv6, use ping -6 on Linux and ping6 on a Mac.
How to read the result
| Field | What it means | What to look for |
|---|---|---|
| The IP in brackets | The address the name resolved to. | Is it the server you expect? After a DNS change, an old IP means the change has not reached you yet. |
time | Round trip in milliseconds. | Steady numbers are good. Distance matters most: a server on another continent cannot answer as fast as one nearby. |
TTL | "Time to live": a counter each router on the way lowers by one. | Not a speed. Systems usually start at 64 (Linux, Mac) or 128 (Windows), so 53 suggests roughly 11 hops from a Linux-type server. |
| Packet loss | Share of pings with no reply. | 0% is normal. Occasional loss on a busy Wi-Fi is common; steady loss points to a bad link or overloaded server. |
TTL and ICMP packet details only come from a real ICMP ping (the command line or Global Ping Test). Our Ping tool's numbers are web request times. For those, the tool page gives a rough guide: under 200 ms is fast, 200 to 600 ms is normal for a distant or dynamic site, and over 1,000 ms is slow. For ICMP pings, compare against the same server over time rather than against a fixed number.
To see the IP a domain points to without pinging it, use Domain to IP.
Request timed out? Why ping fails when the site works
"Request timed out" (Windows) or no replies at all (Mac, Linux) means no ICMP answer came back. It does not prove the site is down. Common reasons:
- The server or its firewall ignores ICMP. Plenty of hosts and corporate networks drop pings on purpose while serving web pages normally.
- A CDN or cloud firewall sits in front. You are pinging the CDN's edge, and its rules decide whether pings get an answer.
- Your own network blocks it. Some office, school and hotel networks block outgoing ICMP.
- DNS failed. "Ping request could not find host" (Windows) or "cannot resolve" / "Unknown host" (Mac, Linux) is a name problem, not a server problem. Check the spelling, then the domain's DNS records.
What to do instead: test the website itself. The Website Status Checker requests the page and shows the HTTP status code (our guide to HTTP status codes explains each one), and our Ping tool times HTTPS requests that ICMP blocks do not affect. If the problem is the route, Traceroute shows each hop from several locations and where replies stop. If a specific service such as SSH or a game server is the issue, test its port with the Open Port Checker. Our website down troubleshooting guide puts these checks in order.
Ping vs page speed
A 30 ms ping and a page that takes six seconds to appear can both be true. Ping measures one round trip to the server; page speed depends on the size of the page, images, scripts, caching and how fast the browser can draw it. If visitors say your site is slow, run the Website Speed Test, which measures the whole page load and Core Web Vitals. Use ping to rule out a slow or unstable network path, not to judge the page.
Frequently asked questions
Can I ping a website without the command line?
Yes. Our Ping Website tool times four HTTPS requests from our server, and the Global Ping Test runs real pings from up to 15 locations. Both work in any browser, including on a phone.
What is a good ping time for a website?
It depends mostly on distance. A nearby server often answers in tens of milliseconds and one on another continent in 100 to 300 ms. Steady times with no packet loss matter more than the exact number.
Why does ping say "Request timed out" when the site loads?
The server, its CDN or a firewall ignores ICMP pings, while the web server answers on port 443 as normal. Test the website with an HTTP check instead.
Why is the first ping slower?
The first packet can wait for your computer to look up the name and find the route, and some network devices answer the first packet more slowly. Judge by the later replies.
How do I ping a website from another country?
Use the Global Ping Test, choose a country or region under "Test from", and compare the times per location.
Does ping show if a website is down for everyone?
Not on its own. A failed ping from your computer can be your network or an ICMP block. Pinging from many locations and checking the HTTP status from outside your network gives a much clearer answer.
Next step
Enter your domain in Ping Website to see how fast it answers right now, then run the Global Ping Test to compare other countries. If you want to know which company runs the server behind an IP you saw in the results, our guide on finding the domain name behind an IP address shows how.