1. EasyHost
  2. Errors
  3. EADDRINUSE: address already in use

EADDRINUSE: address already in use

Your code starts two servers on the same port, often when an imported module also calls listen.

Last updated November 9, 2026

The error

Error: listen EADDRINUSE: address already in use 0.0.0.0:3000

Why it happens

Your code starts two servers on the same port, often when an imported module also calls listen.

How to fix it

Make sure listen is called once, in your entry file.

grep -rn "listen(" src

Still stuck

Read the build log and runtime logs, or browse all errors.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

npx ezhst skill install