Package Exports
- internal-ip
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (internal-ip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
internal-ip 
Get your internal IPv4 or IPv6 address
CLI
$ npm install --global internal-ip$ internal-ip --help
Usage
$ internal-ip
Options
--ipv6 Return the IPv6 address instead of IPv4
Example
$ internal-ip
192.168.0.123
$ internal-ip --ipv6
fe80::200:f8ff:fe21:67cfAPI
$ npm install --save internal-ipvar internalIp = require('internal-ip');
internalIp.v4();
//=> '192.168.0.123'
internalIp.v6();
//=> 'fe80::200:f8ff:fe21:67cf'Related
See public-ip or ipify to get your external IP address.
License
MIT © Sindre Sorhus