Port Sentinel
Tired of the tedious process of checking port usage and killing processes on Windows, I developed Port Sentinel using Flutter.
Why Reinvent the Wheel?
As a backend developer, I often encounter this scenario: starting a local service and getting the error "Port 8080 already in use".
On Windows, the standard solution flow usually looks like this:
- Open CMD or PowerShell.
- Type
netstat -ano | findstr :8080, squinting to find the PID in the output. - Open Task Manager, switch to the "Details" tab, and find the corresponding process by PID.
- Or directly type
taskkill /PID <PID> /Fin the command line.
While not difficult, this process is tedious, especially when it happens several times a day. Although there are some similar tools on the market, they either have interfaces stuck in the Windows 98 era, are full of ads, or are overly bloated.
I thought, why not build one myself? Simple, good-looking, and intuitive.
And so, Port Sentinel was born.
What Does It Do?
Port Sentinel is a Windows desktop application built with Flutter, focused on solving the question "Who is using this port?".
It mainly provides the following features:
- Real-time Monitoring: Intuitively list the usage status of all current TCP/UDP ports.
- Process Association: See at a glance which program (process name and PID) is occupying the port, without having to dig through Task Manager.
- Search & Filter: Support searching by port number, PID, or process name, and filtering by protocol (TCP/UDP).
- One-Click Termination: Found a conflicting process? Just click the "End Process" button to resolve it.
- Auto-Refresh: Supports optional auto-refresh to keep track of system status in real-time.
In terms of interface design, I tried to keep it simple and modern, hoping to bring a little convenience to developers who are also troubled by port issues.
Tech Stack Choice
This time I chose Flutter to develop the Windows desktop client.
Although Electron is also a good choice, Flutter often performs better in terms of performance and package size. Moreover, Flutter's UI construction method allowed me to quickly reproduce the interface in my mind.
The project is completely open source. If you are interested in Flutter desktop development, feel free to check out the code.
Get It & Open Source
Port Sentinel is open source on GitHub.
- GitHub Repository: Sanjeever/port_sentinel
See the repository’s Releases page for installers, the current version, and known issues. This tool terminates local processes, so confirm that the PID, process name, and port really belong to the service you intend to stop; do not free a port by accidentally killing a database, editor, or another important task.
If you encounter bugs during use or have suggestions for new features, Issues and PRs are welcome.
It does not replace netstat, PowerShell, or Task Manager. It puts “find the port, inspect the process, decide whether to stop it” in an interface that is easier to scan. I hope it saves a little command typing—and prevents one mistaken kill.
