By Bruno Silva
I created a simple website with express, with chat feature using sockect.io. I was told that the conversations where droping all the time so I checked if I had any errors and I found this.
Error: listen EADDRINUSE :::3000
but after doing sudo lsof -iTCP -sTCP:LISTEN -P
I see only one app running on port 3000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME systemd-r 699 systemd-resolve 13u IPv4 15747 0t0 TCP localhost:53 (LISTEN) sshd 1006 root 3u IPv4 19017 0t0 TCP *:22 (LISTEN) sshd 1006 root 4u IPv6 19028 0t0 TCP *:22 (LISTEN) nginx 3800 root 6u IPv4 226644 0t0 TCP *:80 (LISTEN) nginx 3800 root 7u IPv6 226645 0t0 TCP *:80 (LISTEN) nginx 3804 www-data 6u IPv4 226644 0t0 TCP *:80 (LISTEN) nginx 3804 www-data 7u IPv6 226645 0t0 TCP *:80 (LISTEN) node\x20/ 3955 bruno 12u IPv6 227645 0t0 TCP *:3000 (LISTEN)
any idea how to get rid of that error?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I would suggest testing some of the solutions here:
https://stackoverflow.com/questions/9898372/how-to-fix-error-listen-eaddrinuse-while-using-nodejs
Let me know how it goes! Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.