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
(13)
Add to favorites
Networking
5/12/2015
E-mail Twitter del.icio.us Digg Facebook