Skip to content

Instantly share code, notes, and snippets.

@rdtechie
Created August 2, 2018 05:52
Show Gist options
  • Save rdtechie/f7e5996117cfdab9b6ff18e5c6404e5e to your computer and use it in GitHub Desktop.
Save rdtechie/f7e5996117cfdab9b6ff18e5c6404e5e to your computer and use it in GitHub Desktop.

Easy method to get the external ip address from where you are located with PowerShell:

Invoke-RestMethod -Uri https://ifconfig.io/ip

or shorter:

irm ifconfig.io/ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment