Skip to content

Instantly share code, notes, and snippets.

@yufengwng
Created May 16, 2018 03:18
Show Gist options
  • Save yufengwng/8a102af4c81e2cb8117fe5b383fdf0c0 to your computer and use it in GitHub Desktop.
Save yufengwng/8a102af4c81e2cb8117fe5b383fdf0c0 to your computer and use it in GitHub Desktop.
Get public IP address programmatically
$ curl -si https://ipinfo.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment