Last active
March 22, 2016 09:25
-
-
Save gnepud/f6b9707efe588d94d741 to your computer and use it in GitHub Desktop.
Get External IP / local IPs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get External IP / local IPs | |
| alias ip="curl ipinfo.io/ip" | |
| alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'" | |
| ## other get external ip methods | |
| # dig +short myip.opendns.com @resolver1.opendns.com | |
| # curl echoip.com | |
| # curl ifconfig.me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment