Ping returns IPv6 Address, ping IPv4?

cmd

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.

If this post helped you, you might also be interested in our post on remotely restarting your computer when there is no restart option.

Incoming search terms:

  • ping ipv4
  • ping returns ipv6
  • ping returns ipv6 instead of ipv4
  • Ping Returns IPv6 Address
  • ping ipv4 not ipv6
  • http://www.thepropertybrain.com the brain

    is there a way to change it so that it responds on IPv4, by default? I don’t want to disable IPv6, but do not want to use it at all
    Thanks!

    • Brian Jackson

      If you are not using IPv6 there is no reason to have it enabled. To disable it, go to Network Connections, right click Properties on your NIC and then uncheck “Internet Protocol Version 6 (TCP/IPv6).
      Hope that helps! There is no way unfortunately to default to IPv4 like in command prompt.

      • Ronny Ong

        Unchecking the protocol binding is not sufficient to disable IPv6. It will seem to work at first, but you will eventually run into strange network problems that seem to defy any explanation. This is ESPECIALLY true for servers. To properly disable IPv6, see KB929852. The “Fix It” MSI available from this KB article is suitable for GPO deployment, no need to create a custom ADMX.

  • Rod

    thanks,

    • http://theitbros.com/ Brian Jackson

      Your welcome.

  • Pascal

    hell yeah…

    Thank you dude! Helped me very much right now!!
    Till now i had to disable ipv6, reboot and at least but not last change the computername (in a automated tailoring of my system). Now i can rename after disabling, without a reboot!

    Thank you (again)

    greez

    • http://theitbros.com/ Brian Jackson

      Great glad we could help :)