{"id":940,"date":"2018-05-03T12:40:53","date_gmt":"2018-05-03T12:40:53","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=940"},"modified":"2023-03-07T10:40:57","modified_gmt":"2023-03-07T10:40:57","slug":"how-to-perform-a-ping-test-in-windows-mac-os-and-linux","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-perform-a-ping-test-in-windows-mac-os-and-linux\/","title":{"rendered":"How to Perform a Ping Test in Windows, Mac OS, and Linux"},"content":{"rendered":"<p>In this article, we will review some useful information about the <em>ping <\/em>command and how to perform a simple ping test.<\/p>\n<h3 id=\"what-is-a-ping\">What is a Ping?<\/h3>\n<article id=\"general\"><strong>Ping<\/strong> is a basic network administration utility (command), similar to <strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-perform-a-traceroute-in-windows-mac-os-and-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\"><em>traceroute<\/em><\/a><\/strong>, used to test the reach-ability of a host on an IP network. It works by sending an Internet Control Message Protocol (ICMP) echo request to a specific IP or host address listens to the ICMP echo response and measures the time it takes for the reply to come back to the source.<\/article>\n<article><\/article>\n<article><\/article>\n<article>\u00a0<\/article>\n<article>It is helpful for troubleshooting accessibility or performance issues you may be having or simply a quick way to tell if a host is \u201cup\u201d or performing slowly or intermittently performing poorly. Our tech support may ask you to run a \u201cping\u201d to your server and then send the results back so we can analyze them.<\/article>\n<article id=\"howtoperform\">\n<h3 id=\"how-to-perform-a-ping-test-in-windows\">How to Perform a Ping test in Windows<\/h3>\n<h4 id=\"windows-7-and-older\">Windows 7\u00a0and older<\/h4>\n<ul>\n<li>Click on the \u201cStart\u201d menu and type \u201ccmd\u201d into the search field (where it says \u201cSearch programs and files\u201d or \u201cStart search\u201d).<\/li>\n<li>Push the Enter key on your keyboard. A DOS prompt window will open up.<\/li>\n<li>Type the following command in the command window and press \u2018Enter\u2019:<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ping yourdmain.tld<\/pre>\n<p><em>(remember to replace yourdomain.tld with your actual domain name)<\/em><\/p>\n<ul>\n<li>The output will look similar to the following:<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ ping -c 5 yourdomain.tld\r\nPING yourdomain.tld (89.45.251.10): 56 data bytes\r\n64 bytes from 89.45.251.10: icmp_seq=0 ttl=56 time=11.632 ms\r\n64 bytes from 89.45.251.10: icmp_seq=1 ttl=56 time=11.726 ms\r\n64 bytes from 89.45.251.10: icmp_seq=2 ttl=56 time=10.683 ms\r\n64 bytes from 89.45.251.10: icmp_seq=3 ttl=56 time=9.674 ms\r\n64 bytes from 89.45.251.10: icmp_seq=4 ttl=56 time=11.127 ms\r\n\r\n--- yourdomain.tld statistics ---\r\n5 packets transmitted, 5 packets received, 0.0% packet loss\r\nround-trip min\/avg\/max\/stddev = 9.674\/10.968\/11.726\/0.748 ms \r\n<\/pre>\n<ul>\n<li style=\"text-align: justify;\">If you noticed in the example above, we used the attribute &#8220;<strong><em>\u2013c<\/em><\/strong>&#8220;<strong><em>. <\/em><\/strong>This limits the number of ping requests to 5.<\/li>\n<li style=\"text-align: justify;\">The ping request by default is constantly recurring until the user presses CTRL + C, hence the utility of this attribute.<\/li>\n<\/ul>\n<h4 id=\"windows-8-x-and-newer\">Windows 8.x\u00a0and newer<\/h4>\n<ul>\n<li>Use the search window, type\u00a0<strong>command prompt<\/strong>\u00a0and click on the\u00a0<strong>Command Prompt<\/strong>\u00a0result.<\/li>\n<li>Type the following command in the command window and press \u2018Enter\u2019:<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ping yourdmain.tld<\/pre>\n<p><em>(remember to replace yourdomain.tld with your actual domain name)<\/em><\/p>\n<div class=\"mkb-shortcode-container\">\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h3 id=\"how-to-perform-a-ping-test-in-mac-os\" class=\"mkb-anchor__title\">How to Perform a Ping test in MAC OS<\/h3>\n<\/div>\n<\/div>\n<ul>\n<li>On Mac OS X, you will need to navigate to the Applications folder &gt; Utilities &gt; and then open the &#8216;<strong>Network Utility<\/strong>&#8216; application.<\/li>\n<li>Once the Network Utility is running, click on the &#8216;<strong>Ping&#8217;<\/strong>\u00a0tab and specify a domain or IP address to check. The default of &#8216;Send only 10 pings&#8217; will be fine.<\/li>\n<li>Click on the &#8216;Ping&#8217; button to start the ping test.<\/li>\n<\/ul>\n<div class=\"mkb-shortcode-container\">\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h3 id=\"how-to-perform-a-ping-test-in-linux\" class=\"mkb-anchor__title\">How to Perform a Ping test in Linux<\/h3>\n<\/div>\n<\/div>\n<ul>\n<li>Open a\u00a0<strong>Terminal<\/strong>\u00a0window using\u00a0<strong>Ctrl + Alt + T<\/strong>.\u00a0 Simply hold all three keys at the same time, and a\u00a0terminal\u00a0window will\u00a0open.<\/li>\n<li>In the new terminal window, type the following command and press \u2018Enter\u2019:<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ping -t 10 yourdomain.tld<\/pre>\n<p><em>(remember to replace yourdomain.tld with your actual domain name)<\/em><\/p>\n<p style=\"text-align: justify;\">In conclusion, the <strong><em>ping<\/em><\/strong> command is a wide-spread and easy-to-use tool. It can come in handy for quick host availability check. However, watch out for certain hosts that prohibit its use due to its vulnerability.<\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will review some useful information about the ping command and how to perform a simple ping test. What is a Ping? Ping is a basic network administration utility (command), similar to traceroute, used to test the reach-ability of a host on an IP network. It works&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[188],"ht-kb-tag":[],"class_list":["post-940","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-support-resources"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=940"}],"version-history":[{"count":6,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/940\/revisions"}],"predecessor-version":[{"id":7829,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/940\/revisions\/7829"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=940"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=940"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}