How to use the ping command on Mac and Windows systems
Summary:The ping command is a great network troubleshooting tool that can be used to test whether the current network can connect to the target server, packet…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
The ping command is a great network troubleshooting tool that can be used to test whether the current network can connect to the target server, packet round-trip time, and packet loss rate. When we encounter problems using VPN, the ping command is also very useful, such as testing line latency, stability, DNS pollution investigation, and so on.
1. How to use the ping command on Windows system
Simultaneously press the Win+R key on the keyboard (Win refers to the Microsoft logo key), then enter cmd in the pop-up "Run" window and click OK.
At this point, the Windows Command Prompt tool is opened. Enter "ping+space+target domain name or IP address" and press Enter on the keyboard to query. The following is an example of ping Baidu.
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>ping www.baidu.com
Pinging www.a.shifen.com [115.239.210.210.217] with 32 bytes of data:
Reply from 115.239.210.27: Byte=32 Time=47ms TTL=54
Reply from 115.239.210.27: Byte=32 Time=38ms TTL=54
Reply from 115.239.210.27: Byte=32 Time=42ms TTL=54
Reply from 115.239.210.27: Byte=32 Time=38ms TTL=54
Ping statistics for 115.239.210.27:
Data packet: Sent=4, Received=4, Lost=0 (0% loss),
Estimated round-trip travel time (in milliseconds):
Shortest=38ms, longest=47ms, average=41ms
From above, you can see the DNS alias, server IP address, connection delay, and other information of the query destination. If you need to keep pinging to see how stable it is, just add the - t parameter after the command. For example, to ping www.baidu.com - t, press Ctrl+C to stop the ping query.
2. How to use the ping command on Mac system
Open the Mac OS terminal program, and use the ping command the same as in Windows. Enter "ping+space+target domain name or IP address" and press Enter to query.
Unlike Windows, Mac terminal queries will continue to ping and can be stopped using the Control+C key combination. If you need to specify the number of queries, just add - c4 after ping, for example ping-c4 www.baidu.com, so that the query will stop after four attempts.
Of course, the above are some of the most basic ways to use the ping command, and there are many other parameters that can be used. If you are interested, you can take a look at the ping command encyclopedia entry. If you want to perform batch queries, the small tool we introduced earlier can handle it.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

