net-ip
v2.0.7
Published
Query local and public IP address
Downloads
6
Readme
net-ip
Get your internal and public IP address - very fast!
Install
$ npm install net-ip
Usage
const netip = require('net-ip')
netip.publicIP().then((ip => {
console.log(`Your public IP is: ${ip}`)
})
netip.internalIP().then((ip => {
console.log(`Your internal IP is: ${ip}`)
})
netip.hostName().then((hostname => {
console.log(`Your hostname is: ${hostname}`)
})