Git Product home page Git Product logo

internal-ip's Introduction

internal-ip Build Status

Get your internal IPv4 or IPv6 address

CLI

$ npm install --global internal-ip
$ internal-ip --help

  Usage
    $ internal-ip

  Options
    -4, --ipv4  Return the IPv4 address (default)
    -6, --ipv6  Return the IPv6 address

  Example
    $ internal-ip
    192.168.0.123
    $ internal-ip -6
    fe80::200:f8ff:fe21:67cf

API

$ npm install --save internal-ip
var internalIp = require('internal-ip');

internalIp.v4();
//=> '192.168.0.123'

internalIp.v6();
//=> 'fe80::200:f8ff:fe21:67cf'

Related

See public-ip or ipify to get your external IP address.

License

MIT © Sindre Sorhus

internal-ip's People

Contributors

sindresorhus avatar arthurvr avatar marsup avatar samverschueren avatar silverwind avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.