How to ping an IP address in DOS window

Date: February 13th, 2007
Author: Ivory Morhuld

This tutorial will show you how to check that IP address is live or that you have connection to him. This operation we call – ping.

By default four packets will be send and respective four packets will be waited. If not return all of them this call – packet loss.

Also is good to see the time for reacting each packet. Lower times is better.

  1. C:\>[b]ping onlinehowto.net[/b]
  2.  
  3. Pinging onlinehowto.net [66.226.93.73] with 32 bytes of data:
  4.  
  5. Reply from 66.226.93.73: bytes=32 time=189ms TTL=49
  6. Reply from 66.226.93.73: bytes=32 time=199ms TTL=49
  7. Reply from 66.226.93.73: bytes=32 time=189ms TTL=49
  8. Reply from 66.226.93.73: bytes=32 time=191ms TTL=49
  9.  
  10. Ping statistics for 66.226.93.73:
  11.     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
  12. Approximate round trip times in milli-seconds:
  13.     Minimum = 189ms, Maximum = 199ms, Average = 192ms
  14.  
  15. C:\>

For other ping option you can type ”ping /?” at DOS prompt.

  1. C:\>[b]ping /?[/b]
  2.  
  3. Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
  4.             [-r count] [-s count] [[-j host-list] | [-k host-list]]
  5.             [-w timeout] target_name
  6.  
  7. Options:
  8.     -t             Ping the specified host until stopped.
  9.                    To see statistics and continue - type Control-Break;
  10.                    To stop - type Control-C.
  11.     -a             Resolve addresses to hostnames.
  12.     -n count       Number of echo requests to send.
  13.     -l size        Send buffer size.
  14.     -f             Set Don't Fragment flag in packet.
  15.    -i TTL         Time To Live.
  16.    -v TOS         Type Of Service.
  17.    -r count       Record route for count hops.
  18.    -s count       Timestamp for count hops.
  19.    -j host-list   Loose source route along host-list.
  20.    -k host-list   Strict source route along host-list.
  21.    -w timeout     Timeout in milliseconds to wait for each reply.
  22.  
  23.  
  24. C:\>
VN:F [1.9.18_1163]
Rating: 4.0/10 (1 vote cast)
How to ping an IP address in DOS window, 4.0 out of 10 based on 1 rating

5 Responses to “How to ping an IP address in DOS window”

Leave a Reply