How to Ping to Keep a Connection Alive

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

Ping is a command that verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) packets. You can use the infinite ping command to keep an Internet connection active. The infinite ping command keeps sending an infinite number of packets, as opposed to the regular ping command that only sends four packets. This way, you can keep your your existing Internet connection active as long as you want.


Step 1

Click the Start menu and type "cmd" (without the quotes) in the search box.

Video of the Day

Step 2

Click "cmd.exe" to launch the Command Prompt.

Step 3

Type the following command: ping -t


Replace "" with the IP address of any website. For example, "ping -t"


Step 4

Press the "Enter" key to start the infinite ping and keep the Internet connection active.


Step 5

Press and hold "Ctrl" + "C" keys to stop the infinite ping. You can also close the "Command Prompt" window to end the task.




Report an Issue

screenshot of the current page

Screenshot loading...