1

Error:

events.js:167
node_app_1  |       throw er; // Unhandled 'error' event<br>
node_app_1  |       ^
node_app_1  | Error: listen EADDRNOTAVAIL 50.177.55.2:3000<br>
node_app_1  |     at Server.setupListenHandle [as _listen2] (net.js:1269:19)<br>
node_app_1  |     at listenInCluster (net.js:1334:12)<br>
node_app_1  |     at GetAddrInfoReqWrap.doListen [as callback] (net.js:1460:7)<br>
node_app_1  |     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)<br>
node_app_1  | Emitted 'error' event at:<br>
node_app_1  |     at emitErrorNT (net.js:1313:8)<br>
node_app_1  |     at process._tickCallback (internal/process/next_tick.js:63:19)<br>

enter image description here

Eranga Heshan
  • 5,133
  • 4
  • 25
  • 48
hmz 4dev
  • 23
  • 8

1 Answers1

0

Update:

Change your socker-io server's IP to 127.0.0.1


Your app is trying to listen on port 3000 and I believe it is already being used.

If you have some other service running on this port, you will either have to change the port of your socket-io server or follow the following process to kill the process that is already listening on port 3000.

Type the following in your terminal,

lsof -i:3000

It will show you the process that is listening to that port. Then you can kill that process using its process ID (PID)

kill -9 <PID>
Eranga Heshan
  • 5,133
  • 4
  • 25
  • 48