icanhazip
v1.0.3
Published
Get external IP from icanhazip.com; uses Bluebird promise
Downloads
1,285
Maintainers
Readme
Uses icanhazip.com
to get your external IP address.
var icanhazip = require('icanhazip');
icanhazip.IPv4().then(function(myIP) {
console.log(myIP);
}).catch(function(e) {
console.error(e.message);
});