Skip to main content

whoport

Show which processes are listening on which ports — with filtering by port number or process name.

Install

pip install whoport[full]

(psutil is required for process information. The base pip install whoport works but will prompt you to install it.)

Usage

# Show all listening ports
whoport

# Show only specific ports
whoport 8080 3000 5432

# Filter by process name (partial match)
whoport --process node
whoport --process python

# Include UDP sockets
whoport --udp

# Show full command lines
whoport --cmd

# Include established connections, not just listeners
whoport --all

Example output

PORT   PROTO  HOST  PID      PROCESS
────────────────────────────────────────────────────
  3000   tcp    *     41234    node
  5432   tcp    *     812      postgres
  8080   tcp    *     9876     uvicorn
  11434  tcp    lo    22980    ollama

4 ports shown.

License

MIT

Metadata

Release files for whoport 0.2.1

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

Source distribution (sdist)

Source distribution for whoport 0.2.1
File Size Uploaded
whoport-0.2.1.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whoport 0.2.1
File Interpreter ABI Platform
whoport-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / whoport-0.2.1.tar.gz

Download URL whoport-0.2.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1171b986359e91722272ac0e26fab8155d9590fb6c473e367b43d3f4557b9415
BLAKE2b-256 checksum
How to use checksums
4ba5c5333783a4e23935c18ffa60ed8c2cc08b243145de380643f530247e10c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / whoport-0.2.1-py3-none-any.whl

Download URL whoport-0.2.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd33cf3ca9818c71645deea4923adbae12414070dfaf0081c0711ff55dac479c
BLAKE2b-256 checksum
How to use checksums
954bd058f0b5690ab60b970ad0d3017ba282aedfbc3667a79c7a90e5ed6529f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

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