# productdevbook/port-killer

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/productdevbook-port-killer).**

4,085 stars · 158 forks · Swift · mit

## Links

- GitHub: https://github.com/productdevbook/port-killer
- awesome-repositories: https://awesome-repositories.com/repository/productdevbook-port-killer.md

## Topics

`developer-tools` `kubernetes` `macos` `macos-app` `menu-bar` `port-killer` `process-manager` `swift` `swiftui` `windows`

## Description

Port-killer is a TCP port management utility and process termination tool. It provides a system for discovering listening TCP ports and terminating the processes occupying them to free up network resources.

The project includes a port forwarding manager and a network tunnel monitor to track active connections and verify their operational status. These components support the management of Cloudflare tunnels and Kubernetes port forwarding, incorporating automatic reconnection and status logging to maintain stable connectivity.

The utility covers broad network management capabilities, including network port monitoring with search and filter tools for organizing active sockets. It handles process termination by mapping active listeners to operating system process IDs and employing a signal escalation strategy to release blocked ports.

## Tags

### System Administration & Monitoring

- [Network Port Cleaning](https://awesome-repositories.com/f/system-administration-monitoring/network-port-cleaning.md) — Identifies and terminates processes that occupy specific TCP ports to free up network resources.
- [Port Management Utilities](https://awesome-repositories.com/f/system-administration-monitoring/port-management-utilities.md) — Discovers listening TCP ports and terminates the processes occupying them to free network resources.
- [Tunnel Management Dashboards](https://awesome-repositories.com/f/system-administration-monitoring/real-time-monitoring-dashboards/web-dashboards/tunnel-management-dashboards.md) — Provides a dashboard for tracking active tunnel connections and verifying their current operational status.

### Development Tools & Productivity

- [Port-Based Termination](https://awesome-repositories.com/f/development-tools-productivity/process-management-utilities/terminal-process-managers/port-based-termination.md) — Sends termination signals directly to the OS process ID associated with a network port to release the resource.

### Networking & Communication

- [Tunnel Managers](https://awesome-repositories.com/f/networking-communication/network-tunnels/tunnel-managers.md) — Tracks active tunnel connections and monitors their operational status to ensure stable connectivity. ([source](https://github.com/productdevbook/port-killer#readme))
- [Port Forwarding Tools](https://awesome-repositories.com/f/networking-communication/port-forwarding-tools.md) — Creates and monitors port forwarding sessions with automatic reconnection and status logging.
- [TCP Port Scanners](https://awesome-repositories.com/f/networking-communication/tcp-port-scanners.md) — Scans the system network stack to identify active listeners and map them to specific operating system process IDs.
- [Port Discovery and Filtering](https://awesome-repositories.com/f/networking-communication/network-port-configuration/port-discovery-and-filtering.md) — Discovers listening TCP ports and organizes them by category using search and filter tools. ([source](https://github.com/productdevbook/port-killer#readme))
- [Service Port Forwarding](https://awesome-repositories.com/f/networking-communication/service-port-forwarding.md) — Creates and monitors port forwarding sessions for Kubernetes cluster services with automatic reconnection. ([source](https://github.com/productdevbook/port-killer#readme))
- [TCP Socket Inspection](https://awesome-repositories.com/f/networking-communication/tcp-connection-lifecycles/tcp-client-connections/tcp-connectivity-probes/tcp-socket-inspection.md) — Identifies which processes are listening on specific ports using filters to troubleshoot network connectivity.
- [System Socket Polling](https://awesome-repositories.com/f/networking-communication/tcp-port-scanners/availability-polling/system-socket-polling.md) — Periodically queries the system for open TCP ports to maintain a synchronized view of network activity.

### Security & Cryptography

- [Tunnel Connection Monitoring](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security/web-network-security/network-security/network-routing-access-control/ssh-tunneling/tunnel-connection-monitoring.md) — Tracks the operational status of port forwarding sessions and ensures stability through automatic reconnection.
- [Tunnel Heartbeat Monitoring](https://awesome-repositories.com/f/security-cryptography/secure-remote-connectivity-tools/secure-tunneling/cloudflare-tunnels/tunnel-heartbeat-monitoring.md) — Tracks the heartbeat and connection state of tunnels to trigger automatic reconnection logic.

### DevOps & Infrastructure

- [Local Development Networking](https://awesome-repositories.com/f/devops-infrastructure/local-development-networking.md) — Clears blocked network ports quickly to allow local servers and development tools to start without address conflicts.

### Operating Systems & Systems Programming

- [Process Signal Escalation](https://awesome-repositories.com/f/operating-systems-systems-programming/process-signal-escalation.md) — Implements a signal escalation strategy that attempts graceful shutdowns before resorting to forced process kills.

### Part of an Awesome List

- [Developer Utilities](https://awesome-repositories.com/f/awesome-lists/devtools/developer-utilities.md) — Tool for managing ports, Kubernetes forwards, and killing processes.
