ash47 / OmegleMiddleMan

Lets you connect strangers to each other, and intercept messages AKA Man in the Middle Attack
233 stars 60 forks source link

Port 3000 already in use! #66

Closed karimawi closed 2 years ago

karimawi commented 3 years ago

Says this whenever I open run.bat

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::3000
    at Server.setupListenHandle [as _listen2] (net.js:1318:16)
    at listenInCluster (net.js:1366:12)
    at Server.listen (net.js:1452:7)
    at Object.<anonymous> (E:\Karim\Programs\OmegleMiddleMan-master\app.js:624:12)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
Emitted 'error' event on Server instance at:
    at emitErrorNT (net.js:1345:8)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  code: 'EADDRINUSE',
  errno: -4091,
  syscall: 'listen',
  address: '::',
  port: 3000
}
ash47 commented 3 years ago

You already have another app listening on port 3000, close the other app or change the port this app listens on.

On Sat, Jun 19, 2021, 11:52 AM karimawii @.***> wrote:

Says this whenever I open run.bat

events.js:292 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (net.js:1318:16) at listenInCluster (net.js:1366:12) at Server.listen (net.js:1452:7) at Object. (E:\Karim\Programs\OmegleMiddleMan-master\app.js:624:12) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 Emitted 'error' event on Server instance at: at emitErrorNT (net.js:1345:8) at processTicksAndRejections (internal/process/task_queues.js:80:21) { code: 'EADDRINUSE', errno: -4091, syscall: 'listen', address: '::', port: 3000 }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ash47/OmegleMiddleMan/issues/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4UUDVFLJXABQ7KEDYZS7DTTPZ4NANCNFSM466SMMHQ .

karimawi commented 3 years ago

I understand that, but I don't know what app I'm using uses the same port cause it's giving me this when I open it in chrome image

Also I don't know how to change the port.

ash47 commented 3 years ago

You can edit the following line to change the port number, e.g. to 3001 or another number.

https://github.com/ash47/OmegleMiddleMan/blob/master/app.js#L623

On Sat, Jun 19, 2021, 12:00 PM karimawii @.***> wrote:

I understand that, but I don't know what app I'm using uses the same port cause it's giving me this when I open it in chrome [image: image] https://user-images.githubusercontent.com/69881381/122627894-cdc61900-d0b2-11eb-8685-a7ea259d05b1.png

Also I don't know how to change the port.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ash47/OmegleMiddleMan/issues/66#issuecomment-864340217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4UUDWMEMXBYEBOTX6RGT3TTP23NANCNFSM466SMMHQ .