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 to hear back. If the device responds, you know it is connected and reachable. If it does not respond, the device is either offline, blocked by a firewall, or not where you think it is on the network.

Pinging is one of the fastest ways to troubleshoot network problems. Before you spend time reconfiguring a router or resetting a device, a ping tells you whether the device is even awake and listening. It takes seconds and works the same way on Windows, Mac, and Linux.

You will use ping most often when a device stops responding — a printer that will not print, a camera that disappeared from your phone, a computer that will not show up on your network. A successful ping means the problem is not the connection itself, but something on the device or in how it is configured.

Key Takeaways

  • Ping sends a test message to an IP address and shows whether the device responds, which tells you if it is connected to your network.
  • On Windows, open Command Prompt and type ping followed by the IP address; on Mac or Linux, open Terminal and do the same.
  • A successful ping shows response times in milliseconds — anything under 100 ms is normal for a home network.
  • If a ping fails, the device is offline, blocked by a firewall, or not on the network you think it is.
  • You can find a device's IP address in your router's admin panel, in the device's network settings, or by using a network scanning tool.

How to ping on Windows

Open the Start menu and type Command Prompt. Click the Command Prompt app — a black window will open. Type the word ping, then a space, then the IP address you want to test. For example: ping 192.168.1.100. Press Enter.

The Command Prompt will send four test messages to that IP address and show you the results. Each line shows whether the device responded and how long the response took, measured in milliseconds (ms). If all four lines show a response time, the device is connected. If you see "Request timed out" on all four lines, the device is not responding.

The response time matters less than whether you get a response at all. On a home network, anything under 100 ms is normal. Times between 100 and 500 ms mean the device is slow or far from your router, but still connected. Times over 500 ms or timeouts mean the device is not reachable.

How to ping on Mac or Linux

Open the Terminal app. On Mac, press Command + Space, type Terminal, and press Enter. On Linux, open your applications menu and find Terminal. Type the word ping, then a space, then the IP address. For example: ping 192.168.1.100. Press Enter.

Terminal will send ping messages continuously until you stop it, unlike Windows which stops after four. Watch the results scroll past — each line shows a response time in milliseconds. When you have seen enough, press Control + C to stop the ping.

The same rules explore: response times under 100 ms are normal, times between 100 and 500 ms mean the device is slow or distant, and no responses mean the device is not reachable.

Finding the IP address you need to ping

Before you can ping a device, you need its IP address. The easiest place to find it is your router's admin panel. Log in to your router (usually by typing 192.168.1.1 or 192.168.0.1 into a web browser), look for a section called "Connected Devices" or "DHCP Clients", and find the device you want to test. The IP address will be listed next to the device name.

You can also find the IP address on the device itself. On a Windows computer, open Command Prompt and type ipconfig, then look for the line that says "IPv4 Address". On a Mac, go to System Settings, click Network, select your Wi-Fi connection, and look for "IP Address". On a printer or camera, check the network settings menu on the device's screen or app.

If you do not know which device is which, write down several IP addresses from your router's device list and ping each one. The device that responds is the one you are looking for.

What to do when a ping fails

If a device does not respond to a ping, start by checking the obvious: Is the device turned on? Is it connected to your Wi-Fi or plugged into the network with an ethernet cable? Walk over and look at it before you assume it is a network problem.

If the device is on and connected, the problem is usually one of three things. First, the device's firewall might be blocking ping requests — this is common on computers and some smart devices. Second, the device might be on a different network than you think, especially if you have a guest network or a second Wi-Fi band. Third, the IP address you are pinging might be wrong because the device got a new one since you last checked.

To rule out a wrong IP address, go back to your router's device list and look for the device again. The IP address may have changed. If you find it listed with a new address, ping the new one. If the device is not in the list at all, it is not connected to your network — check its Wi-Fi settings or ethernet cable.

Understanding ping response times

The response time shown in a ping result tells you how long the message took to reach the device and come back. On a home network, this is almost always under 50 ms because the device is close to your router. Times between 50 and 100 ms are still normal and usually mean the device is farther away or the network is slightly busy.

If you see times that jump around — for example, 20 ms, then 150 ms, then 30 ms — your network is probably congested or the device is moving. This is not a problem unless the times get consistently high or the device stops responding altogether.

Very high response times (over 500 ms) or times that keep increasing usually mean the device is struggling to stay connected. This can happen if the device is too far from your router, if there is interference from walls or other electronics, or if your Wi-Fi is overloaded. Moving the device closer to the router or switching to a less crowded Wi-Fi channel often fixes this.

When to use ping and when to try something else

Ping is the right tool when you need a quick yes-or-no answer: Is this device on the network? But it does not tell you why a device is not working if it is on the network. A printer might ping successfully but still refuse to print because of a driver problem or a paper jam. A computer might ping but not let you log in because of a password issue.

Use ping first to confirm the device is reachable. If the ping succeeds but the device still does not work, the problem is on the device itself, not the network. If the ping fails, the problem is the connection — check the device's Wi-Fi settings, move it closer to the router, or restart both the device and the router.

Frequently Asked Questions

What does "Request timed out" mean when I ping?

It means the device did not respond to the ping message. The device is either offline, not connected to your network, or blocking ping requests through its firewall. Check that the device is on and connected, then verify you have the correct IP address.

Can I ping a device on the internet, not just my home network?

Yes. You can ping any IP address on the internet using the same command. For example, ping 8.8.8.8 pings Google's public DNS server. This is useful for testing whether your internet connection is working.

Why would a device block ping requests?

Some devices and operating systems disable ping as a security measure — it prevents outsiders from discovering devices on a network. If a device blocks ping but is still working normally, this is not a problem. The device is just not answering test messages.

Is there a limit to how many times I can ping a device?

No. You can ping as many times as you want. On Windows, ping stops after four messages automatically. On Mac and Linux, it continues until you press Control + C. Pinging does not harm the device or the network.

What if the IP address keeps changing?

Your router assigns IP addresses automatically, and they can change when a device reconnects or restarts. If you need a device to keep the same IP address, you can assign it a static IP in your router settings. This is useful for devices you ping regularly, like printers or security cameras.