Skip to content

AtuyL/my-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get your local ip.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published