Monday, July 27, 2015

Mac OS X get external IP

  • curl ifconfig.me
  • curl ipecho.net/plain ; echo
  • dig +short myip.opendns.com @resolver1.opendns.com
Create an alias is easier
  • alias getmyip='dig +short myip.opendns.com @resolver1.opendns.com'

No comments:

Post a Comment