Tuesday, 2 January 2024

ping to get IPV4

https://superuser.com/questions/1349780/how-to-get-the-ip-address-of-a-computer-from-its-hostname 

some times when you ping hostname, you will get ipv6 address(looks like mac)


then you use the ping command, you can add "-4" behind the host name to display the IPv4 address.

ping hostname -4

No comments:

Post a Comment