There’s a site out there that’s super useful: http://ifconfig.co
Leveraging that, here’s a one-liner that will get your IP:
Invoke-RestMethod -Uri "http://ifconfig.co/port/8080" | FL ip
Pretty cool. Although a simple “curl ifconfig.co” in bash is shorter if you’re on Linux.