Home » General » What Is My Public IP Address Using Ubuntu Command LineWhat Is My Public IP Address Using Ubuntu Command LineNovember 1, 2019December 12, 2020Operating System (category), Ubuntu (category) To get the public ip, type: dig +short myip.opendns.com @resolver2.opendns.com Press Enter And there you have it. Your Public IP Tags:public ip (tag)terminal (tag)Ubuntu (tag)whatismyip (tag)