Skip to main content

Show which processes are listening on which ports

Project description

portmap

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

Install

pip install portmap[full]

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

Usage

# Show all listening ports
portmap

# Show only specific ports
portmap 8080 3000 5432

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

# Include UDP sockets
portmap --udp

# Show full command lines
portmap --cmd

# Include established connections, not just listeners
portmap --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

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

whoport-0.1.0.tar.gz (6.4 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.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for whoport-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6f160837b8a7e5253f1f86ec87e537d2bb73364865bbd764c689f4ae92c073c
MD5 a811e32f096e857fca6b81cbd26a2d46
BLAKE2b-256 ca70b5d5c00662f551f39cf4ff901ea26851b0a258ef426796eb31c3b6db2533

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whoport-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a06ad8b65e4de884db0909002370b2cd9960c8eb23dd418435e4b1ba52030d4
MD5 3296daff1e7737a6ad718147912a17f3
BLAKE2b-256 a68ccb4418eac1620fb9ec8b97ffe37dbf1b56ab0227443b5ddbd2c4b9c48490

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