How to show remote computer name in ping command output

When you run ping command on a Windows machine, the default behavior is to show remote computer’s IPv4 address in ping command output.

Please refer below image to see the default behavior of ping command, which display only the remote destination computer’s IPv4 address only.


If you want ping command to display the remote computer’s name also in ping command output, please use -a option. Ping command then find the name of remote destination computer using reverse name resolution and display computer name along with its IPv4 address in output.

Please refer below image.


Related Tutorials
Internet Control Message Protocol, ICMP, How ICMP Work, ICMP Header, ICMP Message Header
ICMP message types
ICMP Echo Request and Echo Reply messages
ICMP Destination Unreachable messages
ICMP Source Quench messages
ICMP Router Advertisement messages
ICMP Router Solicitation messages
ICMP Time Exceeded messages
ICMP Parameter Problem messages
ICMP Timestamp Request and Timestamp Reply messages
ICMP Photuris messages
Ping command tool
Ping command options
How to ping continuously
How to specify the number of packets sent in ping command
How to specify the size of data to send in ping command
What is Ping of death (PoD) network attack
Traceroute/tracert command tool
Tracert command options
Pathping command tool
Pathping command options
Difference between ping, traceroute/tracert and pathping