Created
February 14, 2017 00:20
-
-
Save david-sanabria/825c2bba64f14277c119ca094510d5a9 to your computer and use it in GitHub Desktop.
Check your public IP address from the command line
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
#!/bin/bash | |
# | |
# CheckIP.sh | |
# Check your public IP address from the command line using Dynamic DNS | |
# Source: user "lv4tech" post to commandlinefu.com | |
# | |
# This script will display just your IP address as it appears from the | |
# CheckIP service as dyndns.com | |
# | |
#echo -e "Your Public IP Address is: " | |
curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment