0.1.1 • Published 8 years ago

get-local-ip v0.1.1

Weekly downloads
2
License
WTFPL
Repository
github
Last release
8 years ago

get-local-ip

npm travis climate deps gratipay

Get a local IP address from a specified network range.

Install

$ npm i -S get-local-ip

Usage

var getLocalIP = require('get-local-ip');

console.log(getLocalIP('192.168.0.0/24'));

It will loop through all of your network interfaces and return the first matched IPv4 address.

See IP Calculator for the further help.

License

WTFPL