Get your WAN/public IP address using PowerShell and ipify.org
Posted in Networking, PowerShell
I just discovered the ipify.org service to quickly get your public / WAN IP address.

So to get the WAN / public IP address using PowerShell
(New-Object System.Net.WebClient).DownloadString('https://api.ipify.org')
Or get it as JSON and ConvertFrom-Json-it
(New-Object System.Net.WebClient).DownloadString('https://api.ipify.org?format=json') | ConvertFrom-Json

Yeah, i know, my WAN IP is visible in the screenshot .. i’m not concerned, because the fantastic movistar provider gives you a new ip address every day.. and i’m pfSense-ed anyway 😉
Happy 2021 to everyone and don’t forget: Envy must be earned, complaining is free.