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
Here's a packaged called external-ip that can do that for you va npm install external-ip:
npm install external-ip
var externalip = require('external-ip'); externalip(function (err, ip) { console.log(ip); // => 8.8.8.8 });
(sources: https://www.npmjs.org/package/external-ip, https://stackoverflow.com/a/24608249/823548)