Listening to multicast does not join a specific interface when calling socket.addMembership(multicast); The datagram documents for addMembership say:
If the multicastInterface argument is not specified, the operating system will choose one interface and will add membership to it. To add membership to every available interface, call addMembership multiple times, once per interface.
My expectation for the options provided is the multicast option is the multicast address to listen to, and the address option is the interface to receive it on. That requires changing the bind and addMembership lines like seen here. vidterra@a43032d
This is similar to the issue described here nodejs/node#19954
Listening to multicast does not join a specific interface when calling
socket.addMembership(multicast);The datagram documents for addMembership say:If the multicastInterface argument is not specified, the operating system will choose one interface and will add membership to it. To add membership to every available interface, call addMembership multiple times, once per interface.My expectation for the options provided is the
multicastoption is the multicast address to listen to, and theaddressoption is the interface to receive it on. That requires changing thebindandaddMembershiplines like seen here. vidterra@a43032dThis is similar to the issue described here nodejs/node#19954