How to force IPv4 using ping

Sometimes when you’re using the ping command, it will return the IPv6 address of the host. Use the -4 option to force using IPv4 :

ping <hostname> -4

Leave a Reply

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