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

Download files

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

Source Distribution

whoport-0.2.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

whoport-0.2.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file whoport-0.2.1.tar.gz.

File metadata

  • Download URL: whoport-0.2.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for whoport-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1171b986359e91722272ac0e26fab8155d9590fb6c473e367b43d3f4557b9415
MD5 d324a79d45fc7fb8630d5616963ef3dc
BLAKE2b-256 4ba5c5333783a4e23935c18ffa60ed8c2cc08b243145de380643f530247e10c2

See more details on using hashes here.

File details

Details for the file whoport-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: whoport-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for whoport-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd33cf3ca9818c71645deea4923adbae12414070dfaf0081c0711ff55dac479c
MD5 c5aed95efa060e59ebc92a11eab7d661
BLAKE2b-256 954bd058f0b5690ab60b970ad0d3017ba282aedfbc3667a79c7a90e5ed6529f6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

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