PlainError

Home / Coding

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

Last checked 2026-10-17 · 3 fixes · reviewed answer

TL;DRYour server code tried to start listening on port 3000 but another program is already using that port.

Likely causes

  1. Another application or previous server instance is occupying port 3000most likely
  2. A background service or development tool is holding the port openpossible

How to fix it

Safest first: SafeChanges settingsDangerous
  1. Check which process is using the portSafe

    Run a command to list active connections on port 3000 and note any process ID shown.

    lsof -i :3000 || netstat -ano | findstr :3000
  2. Stop the process using the portChanges settings

    Terminate the process ID that is using port 3000.

    kill <process-id>

    ⚠ This stops whatever program is currently using the port.

  3. Use a different port in your codeChanges settings

    Edit the line where your server listens and change 3000 to another number such as 3001, then restart the app.

If that didn't fix it

Restarting the computer will release the port if the conflict persists after the steps above.

When to see a technician

Consult a technician if you are unsure how to identify or safely stop processes on your system.

Did this fix it? Report a problem

Related errors