Skip to main content

Find what’s using a TCP or UDP port

Project description

           _    __                  _   
 __      _| |_ / _|_ __   ___  _ __| |_ 
 \ \ /\ / / __| |_| '_ \ / _ \| '__| __|
  \ 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! 🐞

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wtfport_cli-1.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wtfport_cli-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file wtfport_cli-1.0.2.tar.gz.

File metadata

  • Download URL: wtfport_cli-1.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for wtfport_cli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 274d064b6c76af2701dfab7f3c9155b25a0eb0906a514e248f9f259d235f253f
MD5 eede28d7237b83429dff1c42379d76fd
BLAKE2b-256 bd2a2ecc5316fed861380dedcc5317af456c76fef654a69b7d46bfa4eedf4a16

See more details on using hashes here.

File details

Details for the file wtfport_cli-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: wtfport_cli-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for wtfport_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40666f247bfed5909f287aa8100a2a8fcdcaf8e97de80a820d3c5c6ca53d5044
MD5 7037fd5785a0ce146a89c4c874377159
BLAKE2b-256 77e70474b5697e117e71e8151bdb2362cea39f20a0456da3cfed44a7b4e4cc8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page