What Is MS-DOS Ping Command?

Everyone (almost) who has used a PC knows about MS-DOS and the MS-DOS Ping command. MS-DOS allows a user to make changes in the disk operating space of a computer system. The user interface called command prompt allows one to do these changes by making use of commands in this interface. Command prompt can be accessed on any system just by typing CMD in the search bar.

What Is MS-DOS Ping Command?

A ping is an abbreviation used for Packet Internet Groper. The ping command helps to determine TCP/IP networks IP address, as well as issues with the network and assists in resolving them.

It is used for the verification that whether or not a network data packet is capable enough to be distributed to an address without errors. Mostly it is used to find out the errors in a network.

The ping command sends Internet Control Message Protocol (ICMP) Echo Request messages to the destination computer and waits for a response. Then the ping command provides two major information about a number of responses returned and time taken for them to return the response.

NOTE: Sometimes you might have seen the word ‘ping’ which refers to a brief message. This ping which refers to sending a message has nothing to do with the ping command.

PING Command Availability

MS-DOS Ping command is an external command which is available from within the command prompt in Microsoft operating systems in Windows Vista, Windows XP, Windows 7, Windows 8, Windows 10 under the name of pin.exe. The older version of Microsoft operating system i.e. Windows 95 and Windows 98 also supports ping command.

The MS-DOS Ping command can also be found in Command Prompt in the Advanced Startup Options and System Recovery Options repair/recovery menus.

Syntax for Ping Command in Windows Vista, 7 and 8

Syntax: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] [-R] [-S srcaddr] [-4] [-6 target_name

This syntax includes command that is described in the table below:

Windows CP and lower syntax

ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] destination-list

-t: It will ping the specified host until manually stopped by user. Like above if you wish to see the stats and continue, just go ahead and type control break. To stop you can type Ctrl+C

-a: it resolves addresses to hostnames

-n count: number of echo requests to send

-l size: command to send buffer size

-f: set don’t fragment flag in the packet

-i TTL: time to live

-v TOS: type of service

-r count: record route for count hops

-s count: timestamp for count hops

-j host list: Loose source route alongside host-list

-k host-list: strict source route along with host-list

-w timeout: timeout in millisecond to wait for each reply

Examples

Ping localhost

While using this command, you will get to know if the system can send information out or receive information all by itself.

PS: The above may not send any information over the network, instead it shall show you if the card can respond or not

Ping 216.58.216.163

Each system in a network has an address. Ping helps you there when you wish to connect to a different system. Directly the command can be used followed by the address such as <216.58.216.163>

FAQs

In case no reply is received from the other system which may happen if the packets are lost or you have some issue with the network. It can be anything like network card issues, drivers, routers, switch or cable issues. Fix them and try again.

  1. Is there a continuous ping option? The below-given form of ping can be used as a continuous ping unless you forcefully cancel it by pressing Ctrl+C.Ping <address> -t
  2. When I ping the IP address doesn’t look right? You may see that the IP address looks something like this [fe80::51c1:5214:a18e:8dec%12] as the protocols change and new form starts coming like the latest IPv6. When earlier it uses to look like this {192.168.1.7}. You can use the following command to get the IPv4 IP address.Ping <hostname> -4

Leave a Comment