How to ping a server in Linux and Windows

Why would you want to ping an IP or a DNS?

In this post, you will learn how to ping a server to make sure that the server is up and running and it may be accessible.

Pinging a DNS helps to also find its IP address.

How to PING a DNS in Windows?

Open CMD, and write:

ping www.codeonion.com

And the response will be:

Pinging codeonion.com [23.111.141.26] with 32 bytes of data:
Reply from 23.111.141.26: bytes=32 time=279ms TTL=55
Reply from 23.111.141.26: bytes=32 time=280ms TTL=55
Reply from 23.111.141.26: bytes=32 time=279ms TTL=55
Reply from 23.111.141.26: bytes=32 time=281ms TTL=55

Ping statistics for 23.111.141.26:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 279ms, Maximum = 281ms, Average = 279ms

How to PING an IP address in Windows?

Open CMD, and write:

ping 23.111.141.26

And the response will be:

Pinging 23.111.141.26 with 32 bytes of data:
Reply from 23.111.141.26: bytes=32 time=278ms TTL=55
Reply from 23.111.141.26: bytes=32 time=278ms TTL=55
Reply from 23.111.141.26: bytes=32 time=278ms TTL=55
Reply from 23.111.141.26: bytes=32 time=278ms TTL=55

Ping statistics for 23.111.141.26:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 278ms, Maximum = 278ms, Average = 278ms

How to PING a DNS in Linux?

First open Linux Terminal and write this

$ ping www.codeonion.com

You will get the following response:

PING codeonion.com (23.111.141.26) 56(84) bytes of data.
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=1 ttl=55 time=283 ms
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=2 ttl=55 time=279 ms
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=3 ttl=55 time=279 ms
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=4 ttl=55 time=279 ms
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=5 ttl=55 time=279 ms
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=6 ttl=55 time=279 ms
64 bytes from www.codeonion.com (23.111.141.26): icmp_seq=7 ttl=55 time=279 ms

How to PING an IP address in Linux?

First open the Linux Terminal and write this:

ping 23.111.141.26

You will get the following response:

PING 23.111.141.26 (23.111.141.26) 56(84) bytes of data.
64 bytes from 23.111.141.26: icmp_seq=1 ttl=55 time=281 ms
64 bytes from 23.111.141.26: icmp_seq=2 ttl=55 time=278 ms
64 bytes from 23.111.141.26: icmp_seq=6 ttl=55 time=285 ms
64 bytes from 23.111.141.26: icmp_seq=7 ttl=55 time=279 ms
64 bytes from 23.111.141.26: icmp_seq=8 ttl=55 time=279 ms
64 bytes from 23.111.141.26: icmp_seq=9 ttl=55 time=279 ms
64 bytes from 23.111.141.26: icmp_seq=10 ttl=55 time=279 ms
64 bytes from 23.111.141.26: icmp_seq=11 ttl=55 time=280 ms
64 bytes from 23.111.141.26: icmp_seq=12 ttl=55 time=280 ms
64 bytes from 23.111.141.26: icmp_seq=13 ttl=55 time=279 ms
64 bytes from 23.111.141.26: icmp_seq=14 ttl=55 time=279 ms
64 bytes from 23.111.141.26: icmp_seq=15 ttl=55 time=279

Plain and simple, this is how we ping. Same command in both operating systems. Now I feel like this whole post was a joke.

By codeonion

Codeonion contributes to the honorable mission of “helping people learn and earn online”. Whether your day job is creative or not, life is better when you learn and apply creative skills regularly. To do this is satisfying in its own right and a practical investment in your future.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.