my-ip

Get your IP

  • my-ip

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
my-ip
311.1.19 years ago9 years agoMinified + gzip package size for my-ip in KB

Readme

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