Get your WAN/public IP address using PowerShell and

I just discovered the service to quickly get your public / WAN IP address. – API Usage for IPv4

So to get the WAN / public IP address using PowerShell

(New-Object System.Net.WebClient).DownloadString('')

Or get it as JSON and ConvertFrom-Json-it

(New-Object System.Net.WebClient).DownloadString('') | 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.