I\'m using node.js and I need to get my external IP address, provided by my ISP. Is there a way to achieve this without using a service like http://myexternalip.com/raw ?
You may use the request-ip package:
const requestIp = require('request-ip'); // inside middleware handler const ipMiddleware = function(req, res, next) { const clientIp = requestIp.getClientIp(req); next(); };