PowerShell One Liner: Get External/Public IP Address

Need to know your external/public IP address? Just use the following Invoke-WebRequest one-liner in PowerShell 3.0 and above. As a bonus, you can also get additional IP information, including the hostname, using ipinfo.io‘s JSON web service, and PowerShell 3.0's ConvertFrom-JSON.

5 Star
Add to favorites
E-mail Twitter del.icio.us Digg Facebook