get-local-ip
Get a local IP address from a specified network range.
Install
$ npm i -S get-local-ip
Usage
var getLocalIP = ; console;
It will loop through all of your network interfaces and return the first matched IPv4 address.
See IP Calculator for the further help.