Multiple NIC support?
See original GitHub issueIāve been using node-ssdp 2.2.1 as a client on Windows 8.1 and it has been working perfectly, thanks!
Recently I installed on another Windows 8.1 machine and found that everything went silent. I unfortunately donāt have full-time access to that machine, but I did notice it has two network cards returned by os.networkInterfaces()
as:
"network_interfaces": {
"Ethernet": [
{
"family": "IPv6",
"netmask": "ffff:ffff:ffff:ffff::",
"mac": "xx:xx:xx:xx:xx:xx",
"internal": false,
"scopeid": 3,
"address": "fe80::c570:b450:f38c:e02b"
},
{
"mac": "xx:xx:xx:xx:xx:xx",
"internal": false,
"netmask": "255.255.255.0",
"family": "IPv4",
"address": "10.10.20.1"
}
],
"Ethernet_2": [
{
"family": "IPv6",
"netmask": "ffff:ffff:ffff:ffff::",
"mac": "yy:yy:yy:yy:yy:yy",
"internal": false,
"scopeid": 4,
"address": "fe80::9864:ed9b:ea63:6506"
},
{
"mac": "yy:yy:yy:yy:yy:yy",
"internal": false,
"netmask": "255.255.255.0",
"family": "IPv4",
"address": "192.168.35.54"
}
],
"Loopback_Pseudo-Interface_1": [
{
"family": "IPv6",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"mac": "00:00:00:00:00:00",
"internal": true,
"scopeid": 0,
"address": "::1"
},
{
"mac": "00:00:00:00:00:00",
"internal": true,
"netmask": "255.0.0.0",
"family": "IPv4",
"address": "127.0.0.1"
}
]
}
Here Ethernet
is connected to a single machine using 10.10.20.1
, while Ethernet_2
is connected to the wider internal network via 192.168.35.54
. Iām wondering how node-ssdp behaves in this scenario?
I noticed a similar issue here, and it looks like the relevant code actually creates a socket for each host IP address it finds.
Iām wondering if the simple solution is to create a new Client()
for each IP address? Or if this scenario should be handled at a lower level? Thoughts?
Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Comments:44 (18 by maintainers)
Top GitHub Comments
For me, it actually works š š (using 3.0.0-beta2 from npm) Iām on a mac (10.10.5) with two ethernet connections and an active VPN connection. Using ā¦
ā¦actually works! Well done! š
Seems like this issueās been addresses (or mostly addressed?..). Iām going to close it.