Skip to main content
           _    __                  _   
 __      _| |_ / _|_ __   ___  _ __| |_ 
 \ \ /\ / / __| |_| '_ \ / _ \| '__| __|
  \ V  V /| |_|  _| |_) | (_) | |  | |_ 
   \_/\_/  \__|_| | .__/ \___/|_|   \__|
                  |_|                   

wtfport

PyPI version Release License

Discover what's binding your TCP/UDP ports with ease.

wtfport is a lightweight, command-line tool designed to identify processes occupying specific TCP or UDP ports on your system. Perfect for developers, system administrators, and network troubleshooters, it delivers clear, actionable insights in seconds.

Features

  • Instant Port Lookup: Identify which process is using a TCP/UDP port in real-time.
  • Detailed Output: View process name, PID, and uptime for active ports.
  • Intuitive Feedback: Get clear confirmation when a port is free.
  • Cross-Platform: Supports Linux, macOS, and Windows.
  • Lightweight: Minimal dependencies for fast installation and execution.

Installation

From PyPI

Install the latest stable release via pip:

pip install wtfport-cli

From Debian Package

For Debian-based systems, use the .deb package: Find it in release page of this github repository.

sudo dpkg -i wtfport_1.0.0-1_all.deb

From Source

To install from source, clone the repository and run:

git clone https://github.com/anilrajrimal1/wtfport.git
cd wtfport
pip install .

🛠 Usage

Check a port by running:

wtfport 6969

Example Output

  • Port in Use:

    Port 6969 is in use by `node server.js` (PID 1234) for 5h 12m 4s.
    
  • Port Free:

    WOW! Nothing on port 6969, it's free!
    

Requirements

  • Python: 3.9 or higher
  • Dependencies:
    • psutil (installed automatically via PyPI)

To manually install dependencies:

pip install psutil

License

This project is licensed under the MIT License.

Contributing

We welcome contributions! To get started:

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature/any-awesome-feature
  3. Commit your changes: git commit -m 'Add awesome feature'
  4. Push to the branch: git push origin feature/awesome-feature
  5. Open a Pull Request.

See our Contributing Guidelines for more details.

Support

For bugs, feature requests, or questions, please file an issue on our GitHub Issues page.

Acknowledgments

  • Crafted with ❤️ by the wtfport team.
  • Powered by the psutil library.
  • Inspired by the need for fast, reliable port debugging.

Find the port, free the port, own the port.
Happy debugging! 🐞

Metadata

Release files for wtfport-cli 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wtfport-cli 1.0.5
File Size Uploaded
wtfport_cli-1.0.5.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wtfport-cli 1.0.5
File Interpreter ABI Platform
wtfport_cli-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / wtfport_cli-1.0.5.tar.gz

Download URL wtfport_cli-1.0.5.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
51f179f0953da29e72130a47822f9bb46611ccad7cbc6d5d62445f5a1f2f7fbd
BLAKE2b-256 checksum
How to use checksums
36065d0cc81ce7a9acf959564221e7c376a757ecce75efba35a8302d0d04da6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / wtfport_cli-1.0.5-py3-none-any.whl

Download URL wtfport_cli-1.0.5-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d2c4fb2a18113de0c8cb0596eb2da7f13ad8aeca6d5677411a89ca8f3fb139f
BLAKE2b-256 checksum
How to use checksums
51debb8287db3ffd0ad4e42f771ffbff0d8495a337705cb6c9845d062976980e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page