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

.advertise network interface binding?

Open Freundschaft opened this issue 9 years ago • 2 comments

how can I set on which interface the advertise packets should be sent out while using .advertise()? Currently it seems that node-discover uses only one of the available network interfaces in a multi network interface scenario. did I miss something or is binding to a specific interface not available?

Freundschaft avatar Nov 11 '16 08:11 Freundschaft

Are you specifying a value for address? This is the bind address used here which is just a call to Node's udp bind() method.

If no address is specified then it by default uses 0.0.0.0 which apparently should bind to all interfaces. I've not tested it though. So, I would expect that you should be able to specify no value for address and it should just work. Is the broadcast/mutlicast destination address valid for the subnets of each interface?

wankdanker avatar Nov 11 '16 18:11 wankdanker

with specification of the bind address it works, unfortunately binding to all interfaces did not work for us, and bound to only one interface, and it was unclear based on which criterion this interface was selected the bc/mc address was valid for each interface

Freundschaft avatar Nov 17 '16 12:11 Freundschaft