What pinging does and why you need it

Pinging an IP address sends a small test message to a device on your network and waits for a response. If the device answers, you know it is connected and reachable. If it does not answer, the device is either offline, blocked by a firewall, or not where you think it is on the network.

Ping is one of the fastest ways to troubleshoot a network problem. Before you spend time looking for a loose cable or checking router settings, a ping tells you whether the device itself is awake and talking back. It takes seconds and works on every operating system — Windows, Mac, and Linux all have it built in.

You will use ping most often when a device stops responding: a printer that will not print, a computer that disappeared from your network, a smart home device that stopped working. Ping answers the first question: is the device actually there?

Key Takeaways

  • Ping sends a test message to an IP address and shows whether the device responds, which tells you if it is connected and reachable.
  • On Windows, open Command Prompt and type ping 192.168.1.100 (replacing the numbers with the IP address you want to test).
  • On Mac or Linux, open Terminal and use the same ping command, but press Ctrl+C to stop it after a few seconds.
  • A successful ping shows response times in milliseconds; no response usually means the device is offline, blocked by a firewall, or using a different IP address.
  • If a device does not ping but you know it should be on the network, check that you have the correct IP address and that the device is powered on.

How to ping on Windows

Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open with a blinking cursor.

Type ping followed by a space and the IP address you want to test. For example: ping 192.168.1.100. Press Enter. The command will send four test messages by default and show you the results when ready.

A successful ping shows four lines that say "Reply from [IP address]:" followed by the time in milliseconds it took for the device to respond. If you see "Request timed out" four times, the device did not answer. If you see "Destination host unreachable," the device is not on the network or your computer cannot reach it.

To stop a ping that keeps running, press Ctrl+C. Command Prompt will then show a summary of how many messages were sent and how many came back.

How to ping on Mac and Linux

Open Terminal. On a Mac, press Command+Space, type terminal, and press Enter. On Linux, right-click the desktop or open your applications menu and select Terminal.

Type ping followed by a space and the IP address. For example: ping 192.168.1.100. Press Enter. Unlike Windows, Mac and Linux will keep pinging forever, so you need to stop it manually.

After a few seconds (usually four to six pings), press Ctrl+C. Terminal will show you a summary: how many messages were sent, how many came back, the average response time, and the fastest and slowest responses. If you see "100% packet loss," the device did not answer any of the pings.

Understanding ping results

A successful ping shows response times between 1 and 100 milliseconds on a home network. Times under 50 milliseconds are normal. Times over 100 milliseconds suggest the device is far away or the network is congested, but the device is still reachable.

A timeout or no response means the device did not answer. This happens when the device is powered off, disconnected from the network, or blocked by a firewall rule. Some devices (like certain printers or smart home equipment) are configured not to respond to pings, so no response does not always mean the device is broken.

If you get "Destination host unreachable" or "Network unreachable," your computer cannot find a route to that IP address. This usually means the IP address does not exist on your network, or you typed it wrong. Double-check the address and try again.

Finding the IP address to ping

You need to know the IP address of the device before you can ping it. On Windows, open Command Prompt and type ipconfig to see all devices your computer knows about. On Mac or Linux, open Terminal and type ifconfig or ip addr.

For devices on your network, check your router's admin page. Log in with your router's IP address (usually 192.168.1.1 or 192.168.0.1) and look for a list of connected devices. Most routers show the device name, its IP address, and whether it is currently online.

If you set up a device yourself, check its settings or the manual. Many devices display their own IP address on a screen or in an app. For a printer, look at the network settings menu on the printer itself. For a computer, check the network settings in your operating system.

What to do when a device will not ping

First, make sure the device is powered on and connected to your network. Check for a network cable plugged in (for wired devices) or confirm the device is connected to your Wi-Fi (for wireless devices).

Second, verify you have the correct IP address. IP addresses change sometimes, especially for wireless devices. Check your router's list of connected devices again or look at the device itself to confirm the address.

Third, check whether the device is blocked by a firewall. Some devices have their own firewall that blocks pings. If you own the device, look for a firewall setting in its configuration menu and allow pings if the option exists.

If the device still will not ping but you know it should be on the network, try restarting it. Power it off completely, wait 10 seconds, and power it back on. Then try pinging again. If it still does not respond, the device may have a network problem that requires checking the cable, the Wi-Fi connection, or the device's own network settings.

Ping versus other network tests

Ping tells you if a device is reachable. It is the fastest first step when something is not working.

Tracert (Windows) or traceroute (Mac/Linux) shows the path your message takes to reach a device. Use this when a device is reachable but slow, or when you need to see where a connection is breaking down.

Ipconfig or ifconfig shows your own computer's network settings, including its IP address, subnet mask, and gateway. Use this to confirm your computer is on the network correctly.

Nslookup or dig translates a website name into an IP address. Use this when a website will not load and you need to know if the problem is with the name lookup or the connection itself.

For most home network problems, ping is the right tool. It is straightforward, fast, and answers the most important question first: is the device there?

Frequently Asked Questions

Why does my device not ping even though it is on and connected?

Some devices are configured not to respond to pings for security reasons. Printers, smart home devices, and some security cameras often ignore ping requests. If the device works otherwise (you can print, control it through an app, or see it in your router), the lack of a ping response is normal and not a problem.

What does "Request timed out" mean?

It means the device did not send back a response within the time limit (usually a few seconds). The device is either offline, not on the network, or blocking ping requests. Check that the device is powered on and connected, and verify you have the correct IP address.

Can I ping a device on the internet, or only devices on my home network?

You can ping any device on the internet if you know its IP address. However, many internet servers block ping requests for security. If you want to test your internet connection, try pinging your router's gateway address (usually 192.168.1.1) or a well-known public IP address like 8.8.8.8 (Google's DNS server).

How do I know if a slow ping response means my network is broken?

Response times under 100 milliseconds are normal for home networks. Times between 100 and 300 milliseconds suggest congestion or interference but the connection is still working. If times are consistently over 500 milliseconds or you see packet loss (some pings do not come back), check for Wi-Fi interference, too many devices on the network, or a problem with the device itself.

What if I get "Destination host unreachable"?

This means your computer cannot find a route to that IP address. The address may not exist on your network, or you may have typed it wrong. Double-check the IP address against your router's device list, and make sure the device is powered on and connected to the same network as your computer.