kport is a powerful cross-platform port inspector and process killer for developers. Instantly find what is blocking a port, safely free it, and monitor it in real-time — all from the terminal.
CORE FEATURES • Inspect a port: kport inspect 8080 • Free a port: kport kill 8080 • List all ports: kport list • Scan a port range: kport inspect 3000-3010 • Kill multiple ports: kport kill 3000 3001 8080 • Kill by name: kport kill --process node
WATCH MODE (real-time monitoring) Continuously monitor a port and auto-kill any process that binds to it: kport watch 8080 kport watch 8080 --interval 2.5 --dry-run
SAFETY SHIELD (protect critical services) Blocks accidental kills on SSH, DNS, databases, and Kubernetes by default: kport kill 22 # blocked — SSH is protected kport kill 22 --bypass-safety # override when you really mean it
DOCKER AWARENESS Detects ports published by Docker containers even when no host process is visible: kport docker kport conflicts
MCP SERVER (AI agent integration) Run kport as an MCP server so Claude, Cursor, Copilot, and other AI assistants can inspect and free ports on your behalf: kport --mcp
CONFIG FILE Set persistent defaults via .kport.json (project, home, or global): { "yes": true, "protected_ports": [8080, 9090] }
PLATFORM SUPPORT Works on Linux, macOS, and Windows. Uses psutil when available for richer process info, falls back to native OS tools (ss, lsof, netstat).
Source & docs: https://github.com/farman20ali/port-killer
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Snap can be installed on elementary OS from the command line. Open Terminal from the Applications launcher and type the following:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
To install kport, simply use the following command:
sudo snap install kport
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.