Post

Anyone remember the PowerShell/DotNet one-liner to get currently used endpoints on the machine (including local loopback)?

0 reposts1 like

these? [Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties() | % { $_.GetActiveTcpListeners(); $_.GetActiveUdpListeners(); $_.GetActiveTcpConnections().LocalEndPoint } or (gip).GetActiveTcpListeners()+(gip).GetActiveUdpListeners()+((gip).GetActiveTcpConnections().LocalEndPoint)