1.4.0 • Published 1 year ago
whatismyip v1.4.0
whatismyip
Node.js package to provide the current public IP address from remote IP lookup servers.
##Installation
###Use it in your own application
####Usage
var ip = require('whatismyip');
var options = {
url: 'http://checkip.dyndns.org/',
truncate: '',
timeout: 60000,
matchIndex: 0
};
ip.whatismyip(options, function(err, data){
if (err === null) {
console.log(data);
}
});
###Use as standalone application
####Usage
#####Get your IP address from any predefined server
$ whatismyip
#####Get your IPv6 address
$ whatismyip -6
or
$ whatismyip --ipv6
#####Get your IP address as well as the server that responded first and the time taken to serve the request.
$ whatismyip -v
or
$ whatismyip --verbose
#####Get your IP address from all predefined servers
$ whatismyip -av
or
$ whatismyip --all --verbose
#####Get Help
$ whatismyip --help
1.2.0
1 year ago
1.4.0
1 year ago
1.3.0
1 year ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.0.9
8 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago