os/Linux 2020. 5. 12. 12:30

https://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-linux/

 

How To Find My Public IP Address From Command Line On a Linux - nixCraft

Explains how to find my public IP address using the dig and host command line options on a Linux operating systems.

www.cyberciti.biz

You can also use the Google server to get the same info using dig command:
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'
posted by cskimair
: