Expand description
§ports
Modern cross-platform port inspector. A clean replacement for ss, netstat, and lsof.
§Features
- List listening ports (TCP/UDP, IPv4/IPv6)
- Show established connections
- Filter by port number, process name, or protocol
- Kill processes by port or name
- Interactive selection mode
- Watch mode with live updates
- JSON output for scripting
- Shell completions (bash, zsh, fish)
§Platform Support
- Linux: Native
/proc/netparsing for TCP, TCP6, UDP, UDP6 - macOS: Uses
lsoffor connections,listenerscrate for listening ports - Others: Generic fallback via
listenerscrate
Re-exports§
pub use cli::Cli;
Modules§
- ancestry
- Process ancestry and source detection (“why is this running?”).
- cli
- commands
- docker
- Docker container integration for mapping ports to containers.
- history
- Port usage history tracking
- interactive
- output
- platform
- Platform-specific port enumeration.
- top
- Interactive real-time port viewer (htop-style), built on ratatui.
- types
- Core data types for port information.
- watch