Skip to content

Instantly share code, notes, and snippets.

@veritas06
Created October 26, 2018 18:48
Show Gist options
  • Save veritas06/18221dfe72dfa344d47ee0e661c5681c to your computer and use it in GitHub Desktop.
Save veritas06/18221dfe72dfa344d47ee0e661c5681c to your computer and use it in GitHub Desktop.
[PS: Get External \ Public IP Address] Get the public IP through PowerShell #PowerShell
$ipinfo = Invoke-RestMethod http://ipinfo.io/json
$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