{"success":true,"name":"confirm-the-dev-server-port-matches-the-browser-before-debug","description":"Everything fails with connection refused and you're about to debug code.","category":"ai-brimind","path":"ai-brimind/confirm-the-dev-server-port-matches-the-browser-before-debug/SKILL.md","file":"SKILL.md","content":"---\nname: confirm-the-dev-server-port-matches-the-browser-before-debug\ndescription: \"Everything fails with connection refused and you're about to debug code.\"\n---\n\n# Confirm the Dev Server Port Matches the Browser Before Debugging Anything\n\n## When to use\nThe browser shows ERR_CONNECTION_REFUSED or the whole page/API fails at once, and you have not yet confirmed the server is running on the exact port the browser calls.\n\n## Example request\nbrowser calls :3100, server logs say it started on :3000 → nothing is broken except the address. → port mismatch. server crashed on startup but the old tab still shows the page → cached page, dead server; restart and read the startup log. → stale tab illusion. two projects both claim the same port → the wrong app answers or none does. → port collision. it worked a minute ago → the process died; check it's still alive before reading any code. → process liveness first.\n\n## Instructions\nAct as a debugger who checks the plug before opening the machine. When everything fails at once with connection refused: first read the URL bar and note the exact host and port the browser targets. Then confirm a live process actually listens there — check the server's startup log for the real port, or probe the port directly. Compare the two. Classify the case: server not running (start it), server on a different port (fix the URL or the config, pick one source of truth), or another process occupying the port (free it). State which case it is before touching any application code — a connection-refused storm is almost never an application bug. Only continue debugging code once the browser and a living server are confirmed to meet on the same port, and say how you verified it.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #651\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}