Skip to content

Pseudo Multicast does only add itself to the multicast group on one interface #83

@MofX

Description

@MofX

At least on windows the pseudo multicast interface adds itself to the multicast group of only one if the interfaces.

The call
sock.addMembership(MDNS_MULTICAST);
adds the socket to only one of the interfaces as described here: https://nodejs.org/api/dgram.html#dgram_socket_addmembership_multicastaddress_multicastinterface

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.

From the documentation I think it is the same for linux and maybe other OSes.

A possible fix is collecting the addresses of all interfaces while binding to them and then calling addMembership multiple times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions