Skip to content

Instantly share code, notes, and snippets.

@agerwick
Created October 29, 2012 00:43
Show Gist options
  • Save agerwick/3970725 to your computer and use it in GitHub Desktop.
Save agerwick/3970725 to your computer and use it in GitHub Desktop.
command line tool for finding your public IP address
#!/bin/sh
dig myip.opendns.com @resolver1.opendns.com +short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment