Urgent.News

What's breaking now, across thousands of outlets.

Tech

Stop Guessing localhost Ports with portmap and TypeScript

AI coding agents are very good at remembering common conventions. That is also why they can be very confident and completely wrong about localhost:3000 . One project may expose a Vite frontend on port 5173. Another may run an API on 8080. A Docker mapping can make the host port different from the container port, while an .env.local file may still point to a service that is not running today. The…

A new CLI tool called portmap aims to help developers avoid confusion when working with localhost ports in local development environments. The tool combines declared configuration, OS listener data, and environment references into a .portmap.json report for analysis. It can identify issues like stale URLs that cause problems like CORS errors, authentication failures, or broken API clients.

The tutorial demonstrates building portmap from source, running a static scan to inspect findings, and understanding where the tool stops making assumptions. Prerequisites include Node.js 20+, npm, Git, and a dev machine with listener support. The tool is MIT-licensed and currently at version 0.1.0, with no GitHub release available.

Portmap can identify issues like declared ports without listeners, listeners without declared configuration, Docker host/container port mismatches, and unresolved environment URLs. This provides concrete evidence for developers to address before changing application code.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CVE-2026-113872: CVE-2026-113872: Unauthenticated Process Crash in Express Multer via Late Busboy Stream Resumption

CVE-2026-113872: Unauthenticated Process Crash in Express Multer via Late Busboy Stream Resumption Vulnerability ID: CVE-2026-113872 CVSS Score: 7.5 Published: 2026-10-23 CVE-2026-113872…

  • Critical denial-of-service vulnerability affects multer npm package versions 2.0.0 through 2.4.0
  • Unhandled error event crashes server process after request ends
  • Upgrade to version 2.5.0 or later to mitigate risk

Announcing the Theory of Computation (TOC) Master Track on Binary Dose

🚀 CoreDose Launch: Theory of Computation (TOC) Master Track "Our goal is to provide the absolute best learning experience to our students so they grasp mental models in under 3 seconds." We are…

  • Theory of Computation Master Track launched on Binary Dose
  • 10 modules covering Finite Automata, Grammars, and Computability
  • Interactive State Transition Diagrams and Zero Paywalls

What $5,000 actually buys you in a website

The short answer At $5,000 you get the site that does the work: the pages, the part your customers actually use (ordering, a shop, booking or a live demo), and the animation and polish that make it…

  • $5,000 covers planning, design, and construction of a fully functional website
  • 70% budget allocated to meticulous planning and design for user experience
  • Remaining 30% used for actual build, deployment, and testing

More from Saturday 24 October →