-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os.networkInterfaces() returns wrong result #5629
Comments
@pavelzaruba hi there! Perhaps you could take a look at #498? That may be similar to the first problem. For the second problem, would you mind trying the same with a more recent node version (v5)? It may have already been fixed and may just need a backport. Thanks! |
@brendanashworth hi! So it just lists interfaces with assigned address according the link. I expected that it enumerates all the network interfaces. Then it is useless for me. Does anybody use it for something? The second issue is still there in Node v5.8.0. |
I think that's correct, as it's also in the docs:
I'm sorry if it doesn't fit your use case. Perhaps cc @nodejs/platform-windows ? |
Is this a duplicate of #498 |
is there reason to keep this open? |
reopen if necessary :) |
What about the second issue? |
You mean this?
I'm guessing that it's a EUI-64 MAC address but libuv (and therefore node.js) only supports MAC-48. Libuv v1.x can't easily add support for EUI-64 because that would break ABI (because it changes |
I filed libuv/libuv#829 for that, by the way. |
Yes I do. |
I've created a PR for this bug in libuv. After that PR done, we can upgrade libuv in Node.js. |
Cross-Ref: libuv/libuv#1375 |
The following code...
console.log(require('os').networkInterfaces());
...shows list of network interfaces. It includes e.g. Ethernet adapters, Tunnel adapters, but not Wireless LAN adapters. So it differs from ipconfig /all shell command.
The second difference is that the tunnel adapter physical address returned by ipconfig /all command is "00-00-00-00-00-00-00-E0" but networkinterfaces() returns "00-00-00-00-00-00".
The text was updated successfully, but these errors were encountered: