Skip to content

Instantly share code, notes, and snippets.

@amatsumara
Last active October 8, 2021 13:19
Show Gist options
  • Save amatsumara/c3fd75a39a6ee54482079f169fd72e25 to your computer and use it in GitHub Desktop.
Save amatsumara/c3fd75a39a6ee54482079f169fd72e25 to your computer and use it in GitHub Desktop.
check IP I'm going to Internet with
#
# https://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-a-shell-script
dig +short myip.opendns.com @resolver1.opendns.com
curl https://api.my-ip.io/ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment