m0bilesecurity/RMS-Runtime-Mobile-Security

Unable to start RMS

rcM0D opened this issue ยท 5 comments

rcM0D commented

Unable to start the RMS [Required]
I installed the it using the said instructions, but when I try to run it, it says "address already in use" Even tho there's no service running on that port.

Steps to reproduce the behavior:

  1. Run the "rms" on the terminal
  2. Error Will show
rms
events.js:353
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::5000
    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> (/opt/homebrew/lib/node_modules/rms-runtime-mobile-security/rms.js:91:8)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774: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:82:21) {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '::',
  port: 5000
}

Macbook Air M1 version 12.1

EADDRINUSE have you checked what's going on with the port 5000? @kaleb-g

I got the same error, and it seems the other process running on the same port, I'm wondering if we have an option to customise the port in RMS
@Derewith

@jauharbal sure, just edit this line with a different port ๐Ÿ˜‰

server.listen(5000, () => {

@jauharbal sure, just edit this line with a different port ๐Ÿ˜‰

server.listen(5000, () => {

Thanks @m0bilesecurity !! I found this however encountered other npm based issues, will try again.

Tony-Y commented

Disable AirPlay receiver. HOWTO: https://paretosecurity.com/auditor/checks/airplay

If you want to know the reason, see: https://developer.apple.com/forums/thread/682332