question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Multiple NIC support?

See original GitHub issue

Iā€™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:closed
  • Created 8 years ago
  • Comments:44 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
ds82commented, Dec 14, 2016

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 ā€¦

...
const client = new Client({explicitSocketBind: true});
...

ā€¦actually works! Well done! šŸ˜Ž

0reactions
diversariocommented, Apr 7, 2018

Seems like this issueā€™s been addresses (or mostly addressed?..). Iā€™m going to close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices for Using Multiple Network Interfaces (NICs ...
This tutorial outlines basic Ethernet networking concepts, explains why incorporating multiple NICs can cause problems, and provides bestĀ ...
Read more >
Create and manage Windows VMs in Azure that use multiple ...
Learn how to create and manage a Windows VM that has multiple NICs attached to it by using Azure PowerShell or Resource Manager...
Read more >
NIC Prioritization on devices with multiple NICs
Below are helpful steps that show how to change and set the network priority on multiple NICS. Setting the NIC Prioritization for NIC's...
Read more >
Multiple network interfaces | VPC - Google Cloud
This page provides an overview of multiple network interfaces in a virtual machine (VM) instance, including how they work and sample configurations.
Read more >
How To Configure Dual NICs - Userful Support
Steps to Configure Dual NICs Ā· Open Control Center and navigate to Settings > Network Settings tab and click the "Edit" button next...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found