get-ip-address

1.0.0 • Public • Published

get-ip-address

npm version

Get ip address (v4 only) for an interface

This is a very basic plugin to get the address for a given interface (defaults to eth0).

You'll probably want to just copy and paste the code instead of depending on this module, I just find it easier for myself to have it here

Install

npm install get-ip-address --save

Usage

var findIp = require('get-ip-address')
 
console.log(findIp('eth0'))

License

MIT

Acknowledgements

Maintainer - Paolo Chiodi

This project was kindly sponsored by nearForm.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i get-ip-address

      Weekly Downloads

      20

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • paolochiodi