Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port error: 1900 MMM-AlexaControl with MMM-Screencast. #81

Open
vicarcmirror opened this issue Jul 29, 2020 · 4 comments
Open

Port error: 1900 MMM-AlexaControl with MMM-Screencast. #81

vicarcmirror opened this issue Jul 29, 2020 · 4 comments

Comments

@vicarcmirror
Copy link

Hello, I hope you can guide me with the following problem. I am using the MMM-AlexaControl module together with your MMM-Screencast module.
It turns out that when I want to run the 2 modules it sends me the following error

[2020-07-28 18: 50: 38.635] [ERROR] Error: EADDRINUSE link 0.0.0.0:1900
at dgram.js: 321: 18
in processTicksAndRejections (internal / process / task_queues.js: 84: 9) {
errno: 'EADDRINUSE',
code: 'EADDRINUSE',
syscall: 'bind',
address: '0.0.0.0',
port: 1900

I think the problem is in the port, but I have not found the solution, and that's why I dare,
to ask for your help.
It's worth mentioning that I'm just getting started on this.

I am currently using a Raspberry pi 4, with node.js v12.18.3

Note: Dispense my English. I am using the google transducer.
and many congratulations on your Module.
Thank you.

@kevinatown
Copy link
Owner

Hi @vicarcmirror,

Sorry about the issues you are having. MMM-Screencast uses port 8569 by default, but there is an optional config that you can use to change the port (use the port config option). I would recommend looking into MMM-AlexaControl and see what ports they use and choose another one for MMM-Screencast.

Also looking quickly through MMM-AlexaControl's code and readme, it seems that MMM-AlexaControl uses a whole range of ports (I believe starting 11000 or the startPort config). I'd recommend bumping that higher or using the default.

Finally, the port 1900 is an odd one? Did you set this somewhere for MMM-Screencast or MMM-AlexaControl to use? If so bump it up, i believe 1900 might be a reserved port for TCP.

Good luck!

@bimbim2401
Copy link

bimbim2401 commented Nov 29, 2020

go the node_module of alexacontrol and change the port on line 141 on SSDPServices.js file

udpServer.bind(2900, ipaddress, function()

it works for me

@Simone7000
Copy link

Simone7000 commented Feb 14, 2021

Hi
I wanted to confirm the screencast module problem with alexa-control. And thanks to bimbim2401 I solved the problem by changing the port on line 141 on SSDPServices.js file. This file is located in the path: /home/pi/MagicMirror/modules/MMM-AlexaControl/node_modules/node-fauxmo/src.
Replacing port 1900 with 2900 solved the problem:
udpServer.bind(2900, ipaddress, function()

Thanks to kevinatown for the splendid module and to bimbim2401 for resolving this incompatibility

@vicarcmirror
Copy link
Author

vicarcmirror commented Mar 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants