Is there any node.js module that can be used to get the public IP address of the client\'s computer making a request? I don\'t mean IPv4 or IPv6, I need the public IP like y
I know this old question, but now you can use http://whatismyipaddress.com/api to get IP. Just send request to bot.whatismyipaddress.com and get result.
var http = require('http');
http.get('http://bot.whatismyipaddress.com', function(res){
res.setEncoding('utf8');
res.on('data', function(chunk){
console.log(chunk);
});
});