This package has been deprecated

    Author message:

    The canihazip.com does not work anymore. I suggest to use 'npm install public-ip' instead.

    canihazip

    1.0.4 • Public • Published

    NPM version Build Status Dependency Status

    ⚠️ Deprecation notice

    The canihazip.com project stopped working. See the report at #2. As a fallback, this project is using ipify.org with patch 1.0.3 so it does not break old usages.

    For new projects, I suggest using public-ip. It is better maintained, built to be more robust (to avoid issues like #2) and has a better feature set.


    Get public IP using canihazip.com ipify.org.

    Install

    To use it as a node module:

    npm install --save canihazip

    Or to use it as CLI:

    npm install --global canihazip

    Usage

    As a node module:

    var canihazip = require('canihazip');
     
    var ip = canihazip();

    As CLI:

    canihazip

    This will return IP of the current machine, for example: 1.2.3.4.

    License

    MIT © Marko Grešak

    Keywords

    Install

    npm i canihazip

    DownloadsWeekly Downloads

    3

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.19 kB

    Total Files

    5

    Last publish

    Collaborators

    • markogresak