Skip to content

nodejs module: discover IPv6 hosts on local network

License

Notifications You must be signed in to change notification settings

aadityabhatia/IPv6Discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPv6 Discovery

Discovers IPv6 nodes on the local area network (LAN) using multicast ping

Installation

npm install ipv6discovery

Example

const ipv6discovery = require("ipv6discovery");
interfaces = ipv6discovery.getInterfaces();
ipv6discovery
    .scanInterface(interfaces[0])
    .then(console.log)
    .catch(console.error);

Usage

  • getInterfaces(): lists all IPv6 configured network interfaces
  • getLocalAddresses(): lists all IPv6 addresses configured on local interfaces
  • scanInterface(interface): scans a network interface for IPv6 nodes and returns link local addresses using Promises.

Note

This module relies on the ping program on Linux. Windows is currently not supported. Other platforms were not tested. Pull requests are welcome.

About

nodejs module: discover IPv6 hosts on local network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published