microsoft/PowerToys

network port usage app

Open

#23,993 opened on Feb 8, 2023

View on GitHub
 (2 comments) (25 reactions) (0 assignees)C# (7,978 forks)batch import
Help WantedIdea-New PowerToy

Repository metrics

Stars
 (133,154 stars)
PR merge metrics
 (Avg merge 14d 20h) (117 merged PRs in 30d)

Description

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

Contributor guide