Get-NetTCPConnection -state listen | Select-Object -Property *,@{'Name' = 'ProcessName';'Expression'={(Get-Process -Id $_.OwningProcess).Name}} | select-object OwningProcess,ProcessName,LocalPort
Example of getting all IPv4 IP Addresses with Powershell
Get-NetIPAddress -AddressFamily ipv4 | foreach {$_.IPAddress}
ipconfig /all | findstr /i ipv4
ipconfig /all | sls ipv4
(curl ifconfig.me).Content
netsh winsock reset netsh int IP reset ipconfig /flushdns