Simple CLI tool for get your internal IP addresses
$ npm install get-ip
const getIp = require('get-ip');
getIp();
//=> ['192.168.9.104', '192.168.9.104']
Returns an Array
of IPv4 addresses.
Returns an Array
of IPv6 addresses.
$ npm install --global get-ip
$ get-ip --help
Usage
$ get-ip
Options
-c, --copy Copy first IP to clipboard
-6, --ipv6 Use IPv6
Examples
$ get-ip
192.168.9.58
$ get-ip --copy
192.168.9.58
MIT © alonalon