
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
port-scanner-cli
Advanced tools
A powerful CLI and web dashboard to list, monitor, and manage running ports on your system
A powerful CLI and web dashboard to list, monitor, and manage running ports on your system.
pnpm add -g port-scanner-cli
pnpm add port-scanner-cli
git clone https://github.com/codellyson/port-scanner.git
cd port-scanner
pnpm install
pnpm run build
pnpm link --global
ports list
ports list --protocol tcp
ports list -P udp
ports list --port 3000
ports list -p 80
ports list --state LISTEN
ports list -s ESTABLISHED
ports list --process node
ports list -n nginx
ports list --json
ports list --protocol tcp --state LISTEN --json
Start the web dashboard:
ports web
With custom port and host:
ports web --port 8080 --host 0.0.0.0
| Variable | Default | Description |
|---|---|---|
PORT | 3000 | Web server port |
HOST | localhost | Web server host |
DEMO_MODE | false | Enable demo mode with sample data |
ENABLE_KILL_ENDPOINT | true | Enable/disable process kill endpoint |
RATE_LIMIT_WINDOW_MS | 60000 | Rate limit window in milliseconds |
RATE_LIMIT_MAX_REQUESTS | 100 | Max requests per window |
CORS_ORIGINS | * | Allowed CORS origins (comma-separated) |
For public deployments, enable demo mode to show sample data instead of real system information:
DEMO_MODE=true ports web
Or use the pnpm script:
pnpm run web:demo
docker build -t port-scanner .
# Normal mode (scans container's ports)
docker run -p 3000:3000 port-scanner
# Demo mode (recommended for public deployments)
docker run -p 3000:3000 -e DEMO_MODE=true port-scanner
# With host network (scans host's ports - Linux only)
docker run --net=host -e PORT=3000 port-scanner
When deploying publicly:
DEMO_MODE=true) to prevent exposing real system informationENABLE_KILL_ENDPOINT=false) in production# Install dependencies
pnpm install
# Run in development mode
pnpm run dev
# Build for production
pnpm run build
# Start production server
pnpm start
# Start web dashboard
pnpm run web
# Start in demo mode
pnpm run web:demo
ss or netstat commandlsof or netstat commandnetstat commandMIT License
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)FAQs
A powerful CLI and web dashboard to list, monitor, and manage running ports on your system
The npm package port-scanner-cli receives a total of 2 weekly downloads. As such, port-scanner-cli popularity was classified as not popular.
We found that port-scanner-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.