Returns array of IPV4 Address for this machine.
npm i get-ip-addresses -S
import getIpAddresses from 'get-ip-addresses';
console.log(getIpAddresses());
var getIpAddresses = require('get-ip-addresses').getIpAddresses;
console.log(getIpAddresses());
By default, the list of IP addresses is cached. To force a refresh, you can pass an additional parameter.
getIpAddresses(true);
Liberated from this StackOverflow answer: http://stackoverflow.com/a/8440736
Ryan Boucher