How to obtain Public IP address from PowerShell

How to obtain Public IP address from PowerShell

CHUONG K. NGUYEN – BSc., MCSEx2, MCSAx2, MCP, MCTS, MCITP, CCNA

Launch PowerShell and use this command:

$ips = (Invoke-RestMethod -Uri "http://ipinfo.io").IP
$ips

That’s it.