Home > Mini-tips, Unix/linux > Saber mi IP pública en Shell script (Unix/Linux)

Saber mi IP pública en Shell script (Unix/Linux)

January 12, 2015 Leave a comment Go to comments

Para conocer la ip pública de tu servidor unix puedes usar estas opciones:

$ alias publicip='dig @ns1.google.com txt o-o.myaddr.l.google.com +short'
$ alias publicip='dig @ns1-1.akamaitech.net whoami.akamai.net +short'
$ alias publicip='dig +short myip.opendns.com @resolver1.opendns.com'
$ publicip
83.190.123.123

Categories: Mini-tips, Unix/linux
  1. April 5, 2016 at 10:26

    Si quieres saber tu ip publica, puedes entrar en mi web que automaticamente te la dice. Saludos!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: