How to Constantly Ping in a CMD Prompt

By Erica Harisson

Using the "Ping" command in a command prompt, you can test the communications path from your computer to another device. Running a ping command constantly, rather than the default four packets, may help with troubleshooting connectivity issues. For intermittent issues and troubleshooting, you may wish to increase the number of packets sent, which can be done by passing in a parameter at the command line.

Step 1

Open the Windows Run box by pressing the Windows key and the letter R.

Step 2

Type CMD and press enter to open the command prompt.

Step 3

Type "ping " followed by the IP address to ping. The IP address can be on your home network or a valid IP on any network you have access to. IP Addresses are in the format xxx.xxx.xxx.xxx. Valid numbers in each octet are 0-255, except in the first octet, which can not have a 0 value.

Step 4

Type "-t" after the IP address to run the ping continuously or " -n x", replacing x with the desired number of packets to be sent. Press Enter to begin the Ping. After each packet, you will see the ping result for the packet, which will either time out or display a response showing the packet size and time, in milliseconds, to reach the destination.

Step 5

Press Control and the "C" key at the same time to stop the ping and see the summary statistics. Do this to end a continuous ping or stop a ping command before completing the specified number of packets.

Tips & Warnings

  • Find additional options for the ping command by typing "ping -?" at the command prompt and pressing enter.
  • If packets from the Ping command are dropped, running a trace route may help with troubleshooting.
  • Ping can be run on Windows and Mac operating systems.
  • Ping may be blocked on some systems, making it appear that the IP address is unreachable even when it is active.