get-local-ip

0.1.1 • Public • Published

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

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i get-local-ip

Weekly Downloads

1

Version

0.1.1

License

WTFPL

Last publish

Collaborators

  • deepsweet