Last active
June 16, 2019 17:19
-
-
Save j796160836/1dce423efa4042567d50f74c7d2c0461 to your computer and use it in GitHub Desktop.
Get your public ip. Reference: http://askubuntu.com/questions/95910/command-for-determining-my-public-ip
This file contains 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 | |
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment