What is the ping command? What is ping in apps and games? How to use ping, in Windows?

Even though you are not a networking expert, you may have encountered the term PING, when using computers, networking devices like wireless routers, online apps or when playing games on the internet. If you want to know what the ping is when it comes to computers, how the ping command works, how to understand the data it displays, and how to use it in Windows, read this tutorial:

Contents

  1. What is ping?
  2. What is ping in networking tests (SpeedTest) or games?
  3. Why is ping useful?
  4. Who invented ping?
  5. In which operating systems and devices is ping available?
  6. How to use ping in Windows?
  7. A few examples of working with the ping command:
  8. Do you use the ping command, and how?

What is ping?

Ping is a command line tool, available in many operating systems, that you can use to test whether your computer or device can reach a destination computer through the network and/or the internet.

What is ping in networking tests (SpeedTest) or games?

When you see the ping reported in all kinds of apps, in networking tests like SpeedTest, or in online games, it refers to the time it takes for your PC to get a response to a ping command. This time is reported in milliseconds (ms), and it is an indicator of the speed of the reaction time of your internet connection or your network connection. The lower the ping, the better the reaction time.

Why is ping useful?

The ping command is useful mostly for troubleshooting the accessibility of devices on the network and the internet. This command uses a series of Echo messages (using the Internet Control Message Protocol) to determine things like:

  • Whether the target of the ping command is active or inactive.
  • How much time it takes to communicate with the target device, to send and receive an Echo request and a reply.

  • How many packets are lost when communicating with the target device.

To better understand things, take a look at the screenshot below, where we ran a ping command, in Windows: ping www.microsoft.com.

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

From this command, we learned the following:

  • That the www.microsoft.com website is available and reachable from our Windows PC because we received a reply.

  • The IPv6 address of the microsoft.com website. It is the weird address that is displayed after the text "Reply from."

  • That there was no data loss in our connection to the microsoft.com website.
  • The time it took, in milliseconds, for microsoft.com to reply to our ping command: for each of the four echo requests individually, the minimum, the maximum and the average time it took to respond to our ping command.

As you can see, the ping utility sends four echo requests by default, and it shares statistics and data based on the replies it should get from the target.

Who invented ping?

The ping utility was created by an American named Mike Muuss, in December 1983, while working in Ballistic Research Laboratory at the Aberdeen Proving Ground, in Maryland. The name comes from the sonar technology used in submarines, surface ships, and aircraft, that sends a pulse and listens for the echo to detect underwater objects. He found it a suitable metaphor for how the ping utility works.

In which operating systems and devices is ping available?

You can use the ping tool in Windows, Linux, MAC OS X, Unix, FreeBSD and many other operating systems for desktop computers, servers, and other equipment. Even networking equipment like routers implemented the ping tool for troubleshooting network problems.

How to use ping in Windows?

If you want to use the ping tool in Windows, open the Command Prompt or PowerShell. Then, enter ping followed by the IP address (or the hostname) of the target computer or device. For example, type something like: "ping 192.168.1.1" or "ping www.bing.com" without the quotation marks.

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

As documented by Microsoft, here, the ping command in Windows can use lots of parameters. To see them for yourself, write ping /? or ping -? and press Enter on your keyboard. Windows lists all the parameters and switches that you can use for the ping tool.

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

NOTE: You can use / or - before any parameter of the ping command. They are interchangeable and lead to the same result.

Here is an explanation of all the switches for the ping command:

  • /t - ping continues sending Echo request messages to the destination until interrupted manually. To interrupt and display statistics, press CTRL+Break. To interrupt and quit the ping, press CTRL+C.

  • /a - the ping tries to resolve and show the hostname of an IP address that is entered as the target.

  • /n count - use this change the number of Echo request messages from 4 (the default) to something else. You can use any number from 1 to 4294967295.

  • /l size - sets the size (in bytes) of the Echo request message that is sent to the target, from 32 (the default) to something else. You can use any number from 1 to 65527.

  • /f - use this to send Echo request messages with a "Do Not Fragment" flag turned on so that the request is not fragmented by routers, on the way to the destination. This option works for IPv4 addresses only, and it is useful for troubleshooting path Maximum Transmission Unit (PMTU) problems.

  • /i TTL - sets the Time to Live (TTL) value for the Echo request, the maximum of which is 255. TTL limits the lifetime of the data being sent by the ping command. If the TTL value has elapsed and no reply was received, the data is discarded.

  • /v TOS - sets the Type of Service (TOS) used for the Echo request. The default value is 0, and the maximum is 255. This option works only for IPv4 addresses.

  • /r count - sets the number of hops between your PC and the target that you want be recorded and displayed by the ping command. The maximum value for the count is 9. It works only with IPv4 addresses.

  • /s count - reports the time (in Internet Timestamp format) when each Echo request is received and each reply is sent. The maximum value for the count is 4, meaning that only the first four hops can be time stamped. This option works just with IPv4 addresses.

  • /j host-list - uses the Loose Source Route specified in the host list. With this type of routing, successive intermediate destinations can be separated by one or multiple routers. The maximum number of addresses or names in the host list is 9. The host list is a series of IP addresses separated by spaces, and they have to be IPv4 addresses.

  • /k host-list - uses the Strict Source Route specified in the host list. With strict routing, the next intermediate destination must be reachable directly (and not separated by a router). The maximum number of addresses or names in the host list is 9. The host list is a series of IPv4 addresses separated by spaces.

  • /w timeout - the timeout value adjusts the amount of time, in milliseconds, that the ping waits for each reply. The default timeout value is 4000 or 4 seconds.

  • /r range - tells the ping command to trace the round trip path, for a number of hops. It works only with IPv6 addresses. The range must be a number between 1 and 9.

  • /s srcaddr - specifies the source address to use when working with IPv6 addresses. The address must be entered after srcaddr.

  • /c compartments - specifies the routing compartment identifier.

  • /p - pings a Hyper-V Network Virtualization provider address.

  • /4 - forces the use of the IPv4 address and it is used in conjunction with hostnames, not IP addresses. For example, write "ping /4 www.microsoft.com" (without the quotation marks), and it returns the IPv4 address of the hostname.

  • /6 - forces the use of the IPv6 address and it is used in conjunction with hostnames, not IP addresses. For example, write "ping /6 www.microsoft.com" and you see the IPv6 address of the hostname.

A few examples of working with the ping command:

To make sure that you better understand how to work with the ping command, we will share a few examples and explain how they are used in real life. If you want to monitor a certain website and its availability, you could use "ping -t domainname" without the quotation marks. The command endlessly pings it and shares the time it takes to reply to each Echo request.

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

However, if you do this kind of endless monitoring of well-managed hosts, your PC could get banned from accessing. Do not forget to stop it by pressing CTRL+C on your keyboard.

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

You may want to use a finite number of Echo request messages to send, using "ping -n count hostname" like in the example below:

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

In the screenshot above you can see that the host was initially available and replying to the ping command, and it then went offline, and all the remaining requests timed out.

If you know the IP address of a host, and you want to know the hostname, you can use "ping -a IP address". The ping tries to resolve and display the hostname of the target and then returns it, similar to the screenshot below.

What is the ping command? What is ping in apps and games? How to use ping, in Windows?

ping

Do you use the ping command, and how?

Now you know what ping is, how it works, what it does, and how to use it in Windows. Before closing this tutorial, comment below and share any questions that you might have. Also, we would like to know how you use the ping command.

Sign up and earn $1000 a day ⋙

What should I do if Netflix is ​​hacked?

What should I do if Netflix is ​​hacked?

What should I do if my Netflix account is hacked? What should I do if my Netflix account is hacked? Here's what you need to know when your Netflix account is hacked.

Tips for using LDPlayer you may not know

Tips for using LDPlayer you may not know

Tips for using LDPlayer you may not know. LDPlayer is one of the most popular Android emulators on computers today. This article will provide it to you

Shortcuts in Blender that users need to know

Shortcuts in Blender that users need to know

Shortcuts in Blender that users need to know. Blender shortcuts help you work faster when designing graphics. Therefore, WebTech360 will synthesize the keys for you

Kahoot hacking tips you may not know

Kahoot hacking tips you may not know

Kahoot hacking tips you may not know, how to hack Kahoot to get answers to difficult questions? This article will suggest you some of the simplest Kahoot hacks.

What is Google TasksBoard?

What is Google TasksBoard?

What is Google TasksBoard?, Google TasksBoard is a new task management app, helping you increase work efficiency. Let's learn with Donwload.vn how to use Google TasksBoard

Is Google Takeout a good data backup option?

Is Google Takeout a good data backup option?

Is Google Takeout a good data backup option?, Google Takeout comes from a line of free services from Google. Google says it will help users download it

Host permissions and how to specify co-host in Zoom

Host permissions and how to specify co-host in Zoom

Host rights and how to designate co-host in Zoom. How to regain host rights on Zoom is not difficult. This article will introduce you to host and reclaim host details

6 steps to become a Pinterest expert

6 steps to become a Pinterest expert

6 steps to become a Pinterest expert, Pinterest is a tool for collecting, organizing, and sharing photos and videos you glean from the Internet. Here are 6

3 ways to edit sunsets in Photoshop

3 ways to edit sunsets in Photoshop

3 ways to edit sunset in Photoshop, Sunset is always a scene that every photographer wants to capture. However, taking sunset photos is not easy. Wear

Convert text to speech online

Convert text to speech online

Convert text to speech online. If you want to listen to the pronunciation on Google Translate or Google Translate, users can download this voice to your computer easily.

(2024) The Best Free Cloning Software for Windows 10/11

(2024) The Best Free Cloning Software for Windows 10/11

Are you looking for the free cloning software for Windows 10? This passage will share you the best free Windows 10/11/7 cloning software in 2024.

Steps to create a new database in Access

Steps to create a new database in Access

Steps to create a new database in Access, Steps to create a new database in Microsoft Access are not difficult. This article will guide you in detail on the steps to build muscle

3 ways to save files better on your computer

3 ways to save files better on your computer

3 better ways to save files on your computer, How to save files on your computer is not difficult. However, what is the best way to save on the computer? Let's find out with Dowload.vn

10 poems for the first day of school in 2023 - 2024

10 poems for the first day of school in 2023 - 2024

10 poems for the opening day of school in 2023 - 2024, TOP 10 short and unique poems for the opening day of the new school year. We invite you to follow along!

Things you should do first when buying a Samsung smartphone

Things you should do first when buying a Samsung smartphone

Things you should do first when buying a Samsung smartphone, Samsung phones contain a lot of applications and settings. Here are the settings you should do when

The easiest ways to create borders for photos

The easiest ways to create borders for photos

The easiest ways to create borders for photos, Adding frames to photos is not difficult and you have a lot of options. This article will summarize for you ways to add frames to beautiful photos

Office 2021 vs. Microsoft 365: Which software is right for you?

Office 2021 vs. Microsoft 365: Which software is right for you?

Office 2021 vs. Microsoft 365: Which software is right for you?, Office 2021 and Microsoft 365 can both meet office editing tasks. So Office 2021

Gemini - Googles artificial intelligence model

Gemini - Googles artificial intelligence model

Gemini - Google's artificial intelligence model, Google launches Gemini - an artificial intelligence model competing with OpenAI's GPT-4, this is an artificial intelligence model

What is rendering?

What is rendering?

Rendering is the process of creating an image from a model into a movie scene or image using computer software.

What is CPU? What are the popular CPU types today?

What is CPU? What are the popular CPU types today?

The CPU is the data processing center, or simply understood, it is the brain that controls most of the rest of the components in a computer.