Skip to content

Repository files navigation

WinPortKill

English | 中文

WinPortKill is a Windows x64 port and process inspection toolset built around a shared Rust core.

It currently ships in four user-facing forms:

  • npm CLI: @noxlightman/winportkill
  • VS Code extension: Visual Studio Marketplace
  • JetBrains plugin: JetBrains Marketplace review/upload flow
  • native binaries: GitHub Releases

Install

npm CLI

npm install -g @noxlightman/winportkill

Common commands:

winportkill list --json
winportkill who-uses 3000
winportkill kill --port 3000
winportkill --serve 3000

VS Code

  • Install from the Visual Studio Marketplace
  • Or use the packaged .vsix from GitHub Releases

The extension downloads and caches the Windows x64 sidecar on first use.

JetBrains IDEs

  • Install from JetBrains Marketplace when available
  • Or upload / install the plugin zip produced from jetbrains-plugin/build/distributions

Native binaries

GitHub Releases publish Windows x64 artifacts such as:

  • winportkill-windows-x64.exe
  • winportkill-gui-windows-x64.exe
  • winportkill-vscode-<version>.vsix
  • winportkill-jetbrains-plugin-<version>.zip

What It Does

  • lists listening ports
  • aggregates ports by process
  • filters by PID, process name, protocol, address, or port
  • kills a PID
  • exposes a localhost HTTP sidecar for IDE integrations

Runtime Modes

Terminal UI

The root package winportkill launches a ratatui interface by default.

  • refreshes data every 10 seconds
  • supports filtering
  • switches between ports and processes views
  • kills the selected PID

JSON mode

--json prints one snapshot and exits.

Scriptable CLI mode

  • list [--json]
  • who-uses <port> [--json]
  • kill --pid <pid> [--json]
  • kill --port <port> [--json]

Server mode

--serve <port> starts a localhost HTTP service for IDE integrations.

Native GUI

winportkill-gui is an eframe / egui frontend over winportkill-core.

Local Development

cargo build
cargo run -p winportkill

Other common entrypoints:

cargo run -p winportkill -- --json
cargo run -p winportkill -- --serve 3000
cargo run -p winportkill-gui
cargo run -p winportkill -- list --json
cargo run -p winportkill -- who-uses 3000
cargo run -p winportkill -- kill --port 3000

Repository Layout

Documentation

Boundaries

  • actual inspection and kill flow is Windows x64-only
  • killing protected processes may require elevated privileges
  • the IDE integrations are shells around the same localhost sidecar model
  • the native GUI and TUI call winportkill-core directly instead of going through HTTP

About

Windows 端口进程管理工具 — 查看端口占用、搜索过滤、一键 kill 进程

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages