my-ip

1.1.1 • Public • Published

Usage

myIP = require('my-ip');
console.dir(myIP());// return external IPv4
console.dir(myIP('IPv6'));// return external IPv6
console.dir(myIP(null,true));// return internal IPv4
console.dir(myIP('IPv6',true));// return internal IPv6

or

node my-ip
node my-ip -v6
node my-ip -i
node my-ip -v6 -i

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    791
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    791
  • 1.1.0
    0

Package Sidebar

Install

npm i my-ip

Weekly Downloads

791

Version

1.1.1

License

BSD-2-Clause

Last publish

Collaborators

  • atuyl