On Windows 10, if the network cable is unplugged it won't return back that interface.
This is a known issue with the Node.js os.networkInterfaces:
nodejs/node#498
In windows if I do ipconfig /all it returns even those interfaces where the cable is unplugged.
What I tried:
macaddress.all(function (err, macs) {
});
Here macs won't contain the one without a plugged cable.