Networking
How to Ping an IP Address
Networking · 4 min read · Updated October 27, 2026
To ping an IP address, open a command prompt or terminal and type ping followed by the address, for example ping 8.8.8.8, then press Enter. Your computer sends a few small test messages to that address and reports how long each reply took, or whether no reply came back.
Ping is a quick health check for a connection. It tells you whether the other end is reachable and how fast the round trip is, but it does not fix anything. It is the first test to run when a device or website will not load.
Ping on Windows
Press Win + R, type cmd, and press Enter. Then type ping 8.8.8.8 and press Enter. Windows sends four test messages by default and prints a summary. To send a continuous ping, use ping -t 8.8.8.8 and stop it with Ctrl + C.
You can also ping a website name instead of an address, for example ping google.com. Your computer looks up the site's address first, so this also tests whether name lookup (DNS) is working. The full ipconfig route for finding your own addresses is covered in our Windows IP address guide.
Ping on Mac and Linux
Open Terminal. On a Mac, type ping -c 4 8.8.8.8 and press Enter. The -c 4 part limits it to four messages, because Mac and Linux ping continuously by default. On Linux the same command works, and you can also use ping -c 4 google.com to test a hostname.
If you need your own local addresses first, the Mac IP address guide and the Linux IP address guide cover the quickest lookups on each system.
How to read the results
A healthy reply looks like Reply from 8.8.8.8: time=12ms. The time is the round trip in milliseconds: under 50ms is fast, 50 to 150ms is normal for most home connections, and several hundred milliseconds or more usually means a slow or congested path. The summary at the end shows packets sent, received, and lost; 0% loss is what you want.
TTL (time to live) is a counter that drops by one at each hop. You do not need to act on it, but a very low TTL can hint that the reply traveled a long route. Consistent times across all four replies mean a stable connection; times that jump around suggest congestion or a weak Wi-Fi signal.
What timeouts and other errors mean
Request timed out means no reply arrived. The address may be offline, your connection may be down, or a firewall may be blocking ping. Many websites and servers block ping on purpose, so a timeout does not always mean the site is down. Try pinging a well-known address like 8.8.8.8 first to check your own connection.
If pinging 8.8.8.8 works but a website does not load, the problem is likely with that site or with DNS, not your connection. If pinging your router's address works but 8.8.8.8 does not, your local network is fine and the problem is between your router and the internet, so restarting the router is a sensible next step. If even the router does not reply, check your Wi-Fi or cable first.
Frequently asked questions
What is the ping command?
Ping is a built-in network test that sends small echo request messages to an IP address or hostname and measures how long replies take. It confirms reachability and speed, and it is available on Windows, Mac, and Linux with no software to install.
How do I ping an IP address on Windows?
Open Command Prompt (Win + R, type cmd, press Enter), then type ping followed by the address, for example ping 8.8.8.8, and press Enter. Windows sends four pings and shows a summary.
How do I stop a continuous ping?
Press Ctrl + C in the terminal or command prompt window. This stops the ping and prints the summary of packets sent, received, and lost.
What does Request timed out mean?
It means no reply arrived within the wait time. The target may be offline, your connection may be down, or a firewall may be blocking ping. Many servers block ping deliberately, so test a known address like 8.8.8.8 before concluding anything is broken.
What is a good ping time?
Under 50ms is fast and typical for nearby servers. 50 to 150ms is normal for most home connections. Over 200ms regularly, or high packet loss, usually points to congestion, weak Wi-Fi, or a distant server, and it can cause lag in games and video calls.
Can I ping a website instead of an IP address?
Yes. Pinging a hostname like google.com works on all systems and also tests DNS name lookup. If the hostname ping fails but pinging a numeric address works, DNS is the likely problem, not your connection.