The ips-detection module is a powerful tool for discovering active IP addresses within the same local network, ideal for scenarios like identifying devices on a shared Wi-Fi network. It employs efficient techniques, including pinging, to probe a range of IP addresses and determine which ones are currently active.
- Discover and list live devices within a specified IP range.
- Suitable for applications requiring dynamic detection of devices on a local network.
- Efficient and concise solution for IP address discovery within the same Wi-Fi network.
-
Install the module using npm:
npm install ips-detection
-
Include it in your Node.js application:
const ipsDetection = require('detect_ips');
-
Utilize the getActiveIPs function to retrieve a list of active IPs:
const activeIps = new ipsDetection();
-
Get the Active IPs Function
const Ips =await activeIps.getIPs();
Adjust the content based on the specific features and usage details of your "ips-detection" module.