externalip

1.0.2 • Public • Published

externalip

WARNING: perhaps https://github.com/sindresorhus/public-ip is more and more fast, but opendns does not work fine at mainland china.

Build Status

get your external ip in Node.js

install

npm i externalip

usage

externalip(function (err, ip) {
  console.log(ip); // => 8.8.8.8
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    419
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    419
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i externalip

Weekly Downloads

88

Version

1.0.2

License

MIT

Last publish

Collaborators

  • alsotang