Find External NAT Address using powershell
by Brian on Dec.21, 2021, under Computer Stuff, Networking, Windows Info
Sometimes, you need to know the external NAT address, but you can’t take over the console of the computer.
So, fire up powershell in the background, and run this command:
(Invoke-WebRequest -UseBasicParsing ifconfig.me/ip).Content.Trim()