How To Find My Public IP Address From Command Line On a Linux
- Open the Terminal application on Linux or Unix.
- Type the following dig (domain information groper) command on a
Linux, OS X, or Unix-like operating systems to see your own public IP
address assigned by the ISP:
dig +short myip.opendns.com @resolver1.opendns.com - You can also type:
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com - You should see your IP address on screen. This is the fastest way to find out your IP address without using a 3rd party site.
curl http://ifconfig.me/ip
host -4 myip.opendns.com resolver1.opendns.com
Comments
Post a Comment