Ping returns IPv6 Address, ping IPv4?

This article can also be read at my new website: http://www.theitbros.com.

If you are on the same network, or Vlan, or subnet as someone else you will probably notice that if you ping their hostname it will return with a IPv6 address.

If you want to still see what their IPv4 address is then simply use the command below:

ping hostname -4

Simply add a “-4″ after your normal ping command.

Tags: ,

3 Responses to “Ping returns IPv6 Address, ping IPv4?”

  1. Polprav says:

    Hello from Russia!
    Can I quote a post in your blog with the link to you?

  2. Yes feel free to quote me as long as you provide a link back.
    Have a great day!

  3. Tom Ucome says:

    You are a genius! I’ve spend hours trying to figure out why I could not get ipv4 return from pinging. I have a home LAN with 5 computers. Would this qualify for what you are saying “on the same network?” I just never heard this before. Thanks for your help.

Leave a Reply