Open ghost opened 7 years ago
It looks like cares library failed to get the DNS settings of your system when it initializes itself. I tried the code in my system with 2 adapters and cannot reproduce it. Could you please post DNS settings in your system?
Hi, checking the DNS settings was a good hint. The problem seems not to be related to the multi-adapter-environment, but to the set DNS-server. We were able to reproduce this behavior with one active adapter:
We also tried to manually set the DNS-server with a false entry (e.g. 127.0.0.1). The windows status page of the adapter showed no entry (correct, our localhost has no active DNS-server) but the error did not occur.
Hi there,
we've encountered a problem with NW.js while using node's
dgram
module to establish a socket connection with specific network settings. We were able to reproduce this error on a Windows 7 machine with NW.js v0.18.1 and two network adapters (one is only virtual).When binding a socket (udp4 or udp6) to a port, the following error can be catched:
I tried to reproduce this error with a simplified version of the code within a clean NW.js environment:
I got a different error message, but both seem to be related to the c-ares component in node's dns.js:
If both network adapters are active and connected, the code works fine. Deactivating the primary adapter and the IPv6 support of the second adapter produces the mentioned error. I also tried to activate both adapters and deactivate IPv6 support in both of them, but the code still worked.
Additionally I tried to execute the above example code directly with Node (v6.8.1 and v6.9.1) and it worked too, so it seems to be a problem in combination with NW.js.