Skip to main content

How To Find Public IP/LIVE IP Address From Command Line On a Linux

 Steps:-

  1. Open the Terminal application on Linux or Unix.
  2. 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
  3. You can also type:
    dig TXT +short o-o.myaddr.l.google.com @ns1.google.com or 
    curl http://ifconfig.me/ip

 

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.




Comments