Home » Internet » Test Internet Connection Speed Using Ping Command

Test Internet Connection Speed Using Ping Command

by Mrinal Saha
0 comment

Looking for a quick way to test your network speed? Well, you can always use a service like speedtest. Their results are accurate.

However, most advanced users prefer Ping command.

Why use ping? Well, it’s quick, platform independent, works even on a slow internet connection, and it can reveal some useful information if you know how to use it right.

test your internet speed with speedtest.net

What is ping command?

Ping (stands for Packet Internet groper) is a popular command line tool to check network related issue. Every OS has this inbuilt. And basically, it tells you how long does it take for a “data packet” to travel from your computer to a server and back to your computer. More time it takes, slower is your connection.

How does it work?

Think of it like a sonar. When you ping any server, you send the echo request (ICMP) to the target. And based on the time it took and the amount of the data that came back, you can test the reliability and speed of your connection. 

Here is how you use Ping

1. Open command prompt.

If you are new to command prompt then first check out my post on different ways to open a command prompt. To open the terminal on mac type in the terminal in the spotlight, while Linux user can use the shortcut ctrl + alt+ T.

2. Once you see the cmd or terminal window, try the following command. 

a. ping localhost

This will display your computer’s name and whether your system is able to receive and send information. You will notice the time it took for sending and receiving data packets is less than 1ms. This is because we are communicating to the same device.

This is rarely useful but something you should know.

ping localhost - http://receivetipstricks.com

b. ping google.com

This one extremely useful and usually used. If this command fails i.e. there is no response from the server. Then it means either the website is down or your internet.

Now, why ping google? Well, you can ping other websites as well, but since it’s extremely rare that Google’s servers are down or slow, pinging them is the preferred way to test internet connectivity.

ping google.com-http://receivetipstricks.com

Detail Analysis 

174.194.36.32 – IP-address of Google.com (ping is also helpful to quickly find IP address of any website)

Lost 0%  – It means the ping was successful and your internet is up. No packet was lost.

Avg time = 109 mili sec– if the avg time is less than 100, the connection is Ok and over 1000 is very slow. Though, this is a bit of generalization. It can give you a good idea but it’s defiantly not a holy grail.

Destination unreachable – It probably means that there is no route b/w your computer and destination website. Problem with your network device or internet is down from your ISP

Request timed out – Means no response was received for the given packet. Possibly a slow internet connection.

For more ping option type ping and hit enter

Ping option

If you want to ping the target continuously use the time (-t)  parameter. To escape the loop use ctrl +c for both Mac and Windows.

Example ping google.com –t

If you want to send more or less than 4 requests, use -n followed by no of the count.

Example ping google.com –n 10

[Side note]

Windows sent four packets by default while MAC sent unlimited packets. To stop them in between use CTRL +C. Very useful.

If you want to send a packet data other than 32 bytes (default) use –l followed by numbers of bytes.

Example ping google.com –l 64

It not necessary that every host reply to your ping request. Sometimes pinging website like MSN and Microsoft return an error. Even though your internet connection is good.

Update 1

Apparently, I was having some problem with my WiFi router and ‘ping command’ was helpful. How? Well, it can tell you if the internet is down from your ISP or due to malfunctioning of your router. For instance

#1 If the internet is down from your ISP, then you will able to ping your router but to any website.

#2 If there is a problem with your router, then you will neither be able to ping any website or your router.

Update 2

You can quickly check your internet connectivity on your Android using PingTool. This app not only lets you ping a website but also do a port scan, whois look and has WiFi scanner. Much better than the speedtest  Android app.

Test Internet Connection Speed Using PingTool

Update 3

If you use the ping command a lot on Windows. Then instead of running it through cmd, use the run box instead of by typing cmd /c ping google.com. Here /c will close the cmd once you are done, but if you want to keep it open, use /o parameter.

run ping command from RUN box in windows

Now, the advantage of launching it from the run box is, that it’s much quicker. Also, run box remembers history, so next time you want to run the command, press Win+R to open the run box, use the up/down to bring the ping command and then hit enter.

Type in

You may also like

Leave a Comment