Created
October 26, 2018 18:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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