Skip to content

Instantly share code, notes, and snippets.

@jeongho
Created February 25, 2016 17:40
Show Gist options
  • Save jeongho/d34cbb88ff2c14344392 to your computer and use it in GitHub Desktop.
Save jeongho/d34cbb88ff2c14344392 to your computer and use it in GitHub Desktop.
check public ip
#!/usr/bin/env bash
curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
#wget -qO- http://ipecho.net/plain ; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment