network
network copied to clipboard
The missing network utilities in Node.js.
I tried to use this package inside docker and it couldn't find the active interface. It turns out it is dependent on `ifconfig` and I had to install `net-tools` to...
Node: 6.9.1 network: 0.4.0 I have this situation where `eth0` has two IP addresses (one assigned by DHCP and the other is a link-local address assigned by `systemd-networkd`), but `get_interfaces_list()`...
Wrong IP
``` wlan0 Link encap:Ethernet HWaddr b8:27:eb:a5:16:d4 inet addr:192.168.1.149 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::e1bf:48cf:786c:ee08/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:48895 errors:0 dropped:71 overruns:0 frame:0 TX packets:28059 errors:0 dropped:0...
It would be worth having a method like `network.get_hostnames(cb)`, that returns a map `Hostname IP` for the current active interface? (parsing the output of `arp -a` on unix).
It's because you use os.networkinterfaces()
Per see: [link](https://techcommunity.microsoft.com/t5/windows-it-pro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/ba-p/4039242) Thank you for your work.