Ask coding questions

← Back to all posts
Error: listen EADDRINUSE: address already in use :::3000
8Observer8 (0)

Hi,

I created a simple example using Node.js and Express. It works as expected: https://repl.it/@8Observer8/My-First-Express-Server-in-TypeScript#src/server/App.ts

But I created a new one and I added Babylon.js game engine. My example does not work: https://repl.it/@8Observer8/BabylonJS-TypeScript#src/server/App.ts I see the error: Error: listen EADDRINUSE: address already in use :::3000

Answered by Coder100 (19277) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (19277)

Ah, just change the port, or hit ctrl+shift+s and inside put: kill 1 (it kills all process, thus ending your server and the port being used)

8Observer8 (0)

@Coder100 I tried a lot of ports. kill 1 does not help. Please, try to change the port by yourself here: https://repl.it/@8Observer8/BabylonJS-TypeScript#src/server/App.ts

Coder100 (19277)

alright, I'll see what I can do about it @8Observer8

Coder100 (19277)

wow, that's really weird! Try forking it, and report this to bugs @8Observer8

Alexmejia992 (0)

I had the same mistake, and it was because I was traying to start the server using "npm start" on the shell and running the server using the play button at the same time. I could solve this error running the server using only the play button. I hope this can help you.

8Observer8 (0)

@Alexmejia992 are you able to run my example or does it say that it is unpublished?

SixBeeps (5627)

Try changing the port number to something other than 3000, maybe 3001?

8Observer8 (0)

@SixBeeps changing ports is the first what I made. I tried 3001. Please, try to change port by yourself here: https://repl.it/@8Observer8/BabylonJS-TypeScript#src/server/App.ts