Get a local IP address from a specified network range.
$ npm i -S get-local-ipvar getLocalIP = require('get-local-ip');
console.log(getLocalIP('192.168.0.0/24'));It will loop through all of your network interfaces and return the first matched IPv4 address.
See IP Calculator for the further help.