microsoft/PowerToys

network port usage app

Open

#23.993 aperta il 8 feb 2023

Vedi su GitHub
 (2 commenti) (25 reazioni) (0 assegnatari)C# (7978 fork)batch import
Help WantedIdea-New PowerToy

Metriche repository

Star
 (133.154 star)
Metriche merge PR
 (Merge medio 14g 20h) (117 PR mergiate in 30 g)

Descrizione

Description of the new feature / enhancement

A new PowerToy to see which programs are using each network port. Equivalent to File Locksmith but for networking.

It should show the following items for each open socket:

  • Program name
  • Program path
  • Process ID
  • Process owner
  • Protocol (UDP/TCP)
  • Port Number
  • Status (Listening, Established, ...)
  • Attached interface (127.0.0.1, ...)

Scenario when this would be used?

  • When programming, it is common to have some process already using a TCP/UDP port and blocking its usage.
  • When checking which port an undocumented program is using (reverse engineering, debugging)

Supporting information

This is already possible via cmd and PowerShell. Requires privileges.

https://stackoverflow.com/questions/48198/how-do-i-find-out-which-process-is-listening-on-a-tcp-or-udp-port-on-windows

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            notebook:0          LISTENING
  RpcSs
 [svchost.exe]
  TCP    0.0.0.0:445            notebook:0          LISTENING
 Can not obtain ownership information
  TCP    0.0.0.0:1042           notebook:0          LISTENING
 [asus_framework.exe]
  TCP    0.0.0.0:1043           notebook:0          LISTENING
 [asus_framework.exe]
  TCP    0.0.0.0:2179           notebook:0          LISTENING

Guida contributor