Since I get a lot of positive feedback from my short videos and articles......
Her is one PowerShell command to display your WAN IP:
(Invoke-RestMethod -Uri 'http://ipinfo.io/json').ip
the output will look something like this
![](https://static.wixstatic.com/media/c57ded_eff9453c79794531bb0c7b40c14bc8f8~mv2.png/v1/fill/w_649,h_43,al_c,q_85,enc_avif,quality_auto/c57ded_eff9453c79794531bb0c7b40c14bc8f8~mv2.png)
another way is using wget
wget http://myexternalip.com/raw -O myip.txt
and your ip address will be in myip,txt