3.0.0 • Published 7 years ago

get-internal-ip v3.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

API

$ npm install --save get-internal-ip

USAGE

var getInternalIp = require("get-internal-ip");
getInternalIp.v4();
/*
 {
    eth0:
    {
        address: '192.168.0.14',
        netmask: '255.255.255.0',
        family: 'IPv4',
        mac: '00:0a:95:9d:68:16',
        internal: false
    }
}
*/
getInternalIp.v6();
/*
 {
    eth0:
    {
        address: 'fe80::200:f8ff:fe21:67cf',
         netmask: 'ffff:ffff:ffff:ffff::',
         family: 'IPv6',
         mac: '00:0a:95:9d:68:16',
         scopeid: 3,
         internal: false 
    }
}
*/