e131-node icon indicating copy to clipboard operation
e131-node copied to clipboard

Server only works with a single network interface

Open respectTheCode opened this issue 6 years ago • 4 comments

When running on a machine with multiple network interfaces only the primary interface works. Im my use case sACN is on an isolated network. This can be fixed by specifying the IP of the desired interface when calling _socket.addMembership.

As a work around I am calling

dmx.on("listening", function() {
    const multicastGroup = "239.255." + (universe >> 8) + "." + (universe & 0xff);
    dmx._socket.addMembership(multicastGroup, dmxInterfaceIP);

respectTheCode avatar Apr 14 '18 17:04 respectTheCode

Hi, thanks for reporting! Indeed I didn't consider multiple interfaces in the original implementation. Thanks for providing a suggestion, I will try to incorporate it as soon as possible.

hhromic avatar Apr 16 '18 13:04 hhromic

Any chance in getting this pull request and https://github.com/hhromic/e131-node/issues/21 combined and merged into the project? I can help with the pull request but need to know will it be merged?

TimoteusRuotsalainen avatar Dec 19 '22 12:12 TimoteusRuotsalainen

Wow, I completely forgot about this project for several years. I deeply apologise for not coming back to it. Let me check the pending PRs and start merging.

hhromic avatar Dec 19 '22 22:12 hhromic