Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Created July 19, 2017 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techthoughts2/d64b23f785c60a8fd413f769b2b696de to your computer and use it in GitHub Desktop.
Save techthoughts2/d64b23f785c60a8fd413f769b2b696de to your computer and use it in GitHub Desktop.
Get Public IP information
$ip = Invoke-RestMethod http://ipinfo.io/json | Select -exp ip
$ipinfo.ip
$ipinfo.hostname
$ipinfo.city
$ipinfo.region
$ipinfo.country
$ipinfo.loc
$ipinfo.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment