DEV Community

Gabriel Alejandro López López
Gabriel Alejandro López López

Posted on • Originally published at glpzzz.dev on

How to identify my public IP from Linux CLI

So easy!

dig +short myip.opendns.com @resolver1.opendns.com

Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
arnoleo profile image
Arnaud Léonard

Even shorter :

curl ifconfig.me