Skip to content

Instantly share code, notes, and snippets.

@ipolyzos
Last active January 19, 2021 16:14
Show Gist options
  • Select an option

  • Save ipolyzos/6de461a3873da5d36fcb7a744fe3a62d to your computer and use it in GitHub Desktop.

Select an option

Save ipolyzos/6de461a3873da5d36fcb7a744fe3a62d to your computer and use it in GitHub Desktop.
Get current IP address in PowerShell script
# Get current IP address in PowerShell
$ip = Invoke-RestMethod http://ipinfo.io/json | Select-Object -exp ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment