Gabriel Alejandro López López (Software Engineer)

How to identify my public IP from Linux CLI

- Which is my public IP? Linux command to know it on CLI, as I like the things

So easy!

dig +short

And of course I created an alias for it:

alias myip="dig +short"

So, now I just need to type



The coleagues @codeshard and @luilver on Twitter suggested this other way:


;-) Useful for me, hope it’s useful for you!