Skip to content
This repository was archived by the owner on May 4, 2018. It is now read-only.
/ get-local-ip Public archive

Get a local IP address from a specified network range

Notifications You must be signed in to change notification settings

deepsweet/get-local-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get a local IP address from a specified network range

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published