How to get your External IP Address


Last Updated on 9 de Janeiro, 2021 by Vítor Fernandes

IP address, in general, is an identification of a device (computer, printer, etc.) on a local or public network. Each computer on the Internet has a unique IP (Internet Protocol), which is the medium in which machines use to communicate on the Internet.

wikipedia

Get your external IP address

This will be your external IP provided by your ISP.

powershell -command "(Invoke-WebRequest ifconfig.me/ip).Content"

Or you can use this fancy method to get it all

Invoke-RestMethod -Uri (‘http://ipinfo.io/’+(Invoke-WebRequest -uri “http://ifconfig.me/ip”).Content)