lsof
Lightweight, performant interactive network connection monitor with friendly service names
Find what's using a port, who started it (Claude Code, Cursor, Docker…), whether your network can reach it, and stop it safely. An lsof alternative for developers: TUI, CLI and a live harbour view.
a Python package that allows you to monitor active TCP ports used by a specific process (PID) in real-time