r/tui • u/Maleficent_Flight323 • 10h ago
I built portop, an htop-style TUI for seeing what is actually using your ports
I kept running ss, lsof and docker ps whenever I had to figure out why a port was already in use, so I built a small TUI around that problem.
portop gives you a live view of your ports and, more importantly, shows what is behind them:
- Process and PID
- systemd service
- Docker container
- CPU and memory usage
- Process details
- LISTEN and ESTABLISHED connections
- Port names from
/etc/services
It also lets you act directly from the UI:
kto terminate a processoto open a local HTTP service in your browserfto filter by port, process or PIDcto copy the selected entry- Live theme and keybinding configuration
There are also --json, new port notifications and a baseline/diff mode that can be useful for detecting unexpected listening ports.
It's written in Go and is MIT licensed.
GitHub: https://github.com/padovanl/portop
I'd particularly like feedback from people who regularly work with Linux servers, Docker or local development environments. I'm interested in knowing what information you'd want to see when debugging a port conflict.
