Discovers IPv6 nodes on the local area network (LAN) using multicast ping
npm install ipv6discovery
const ipv6discovery = require("ipv6discovery");
interfaces = ipv6discovery.getInterfaces();
ipv6discovery
.scanInterface(interfaces[0])
.then(console.log)
.catch(console.error);
getInterfaces()
: lists all IPv6 configured network interfacesgetLocalAddresses()
: lists all IPv6 addresses configured on local interfacesscanInterface(interface)
: scans a network interface for IPv6 nodes and returns link local addresses using Promises.
This module relies on the ping
program on Linux. Windows is currently not supported. Other platforms were not tested. Pull requests are welcome.