-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
[dgram]no udp multicast message received when binding on a specific address #1690
Comments
Have you tried the multicast address And according to our api docs, example code uses |
I tried with |
I get the same behavior as @tberthe whether I use |
I have exactly the same issue but only on Linux (Debian 8.4), use bind with a specific address is working fine on Windows (10). Linux sends packets with specific address but cannot receive. With Linux or Windows, i have multiple interfaces (ethernet, wifi, Docker...). I'm using Node 6.1.0. Tested with many multicast addresses without success. Disabling the unused interfaces has no effect. |
I've been looking into this and think it works as expected. IIUIC, to receive a multicast datagram you have 2 options:
On the other hand, if you want to restrict from which interface the multicast messages are received you can use the |
Thanks @santigimeno, works for me :-) |
Closing this. If anyone feels it should be re-open, please do. |
When binding a dgram udp socket on a specific address my program does not receive any multicast message.
Here are 3 programs that demonstrate the problem:
receive-all-addresses.js
receive-specific-address.js
send.js
When listening on all addresses the program receives both messages from send.js:
but when listening on a single address the program only receives the direct message:
The problem has been reproduced with io.js 1.6.4 and 2.0.1 (linux armv6l, linux x64).
The text was updated successfully, but these errors were encountered: