Find Wan IP from Linux console

By polfilm,

  Filed under: Bash, Testing, Ubuntu
  Comments: None


== in bashrc
alias wanip='dig +short myip.opendns.com @resolver1.opendns.com'

== example
$ wanip
80.100.192.168

Be the first to write a comment.

Your feedback

You must be logged in to post a comment.