Open diegocr opened 5 years ago
Actually there is a quite trivial workaround for this:
const SSDP = require('node-ssdp').Server, server = new SSDP({
reuseAddr: false,
sourcePort: {
port: 1900, exclusive: true
},
......
});
Although this throws the warning:
WARNING: SSDP server `sourcePort` option is set to non-SSDP port....
but meh, it does work now :)
This error is throw in Windows when using node-ssdp from a cluster's worker - long story short, the socket needs to be bind'ed with the
exclusive
flag set.See https://github.com/wankdanker/node-discover/issues/18