k-yle / sACN

💡 🎭 Send & Receive sACN data (DMX over IP) in node.js
https://npm.im/sacn
Apache License 2.0
31 stars 13 forks source link

iface option for Sender only works once. #49

Open lyndonbuckley opened 1 year ago

lyndonbuckley commented 1 year ago

Using the below example, only universe 11 is sent via the desired interface, the others are sent via default.

const ip = "10.101.100.1";
const sacn11 = new Sender({
    universe: 11,
    iface: ip
});

const sacn12 = new Sender({
    universe: 12,
    iface: ip
});
const sacn13 = new Sender({
    universe: 13,
    iface: ip
});
lyndonbuckley commented 1 year ago

Edit: typo in universe parameters

k-yle commented 1 year ago

sorry for the very delayed reply... If you set reuseAddr: true, does that resolve the problem? It seems to work fine for me when I use reuseAddr: true