Retrieve your router IP address in PowerShell
Command Lines
(Invoke-WebRequest ifconfig.me/ip).Content.Trim()
$(Resolve-DnsName -Name myip.opendns.com -Server 208.67.222.220).IPAddress
Source
https://superuser.com/questions/803872/getting-external-ip-via-powershell
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.