Get your public IP address
JavaScript
Permalink
Failed to load latest commit information.
.editorconfig init Aug 18, 2014
.gitattributes init Aug 18, 2014
.gitignore init Aug 18, 2014
.jshintrc init Aug 18, 2014
.travis.yml Update .travis.yml Feb 8, 2015
cli.js simplify cli help creation Jun 19, 2015
index.js use https - fixes #3 Nov 16, 2014
license init Aug 18, 2014
package.json update tests for latest AVA version Jan 1, 2016
readme.md tweaks Oct 5, 2015
test.js update tests for latest AVA version Jan 1, 2016

readme.md

ipify Build Status

Get your public IP address

Using the ipify API.

Usage

$ npm install --save ipify
const ipify = require('ipify');

ipify((err, ip) => {
    console.log(ip);
    //=> '82.142.31.236'
});

CLI

$ npm install --global ipify
$ ipify --help

  Example
    $ ipify
    82.142.31.236

Related

See internal-ip to get your internal IP address.

License

MIT © Sindre Sorhus