1.0.0 • Published 9 years ago
client-ip v1.0.0
client-ip
Get the client IP address of the current request
Install
npm install client-ip --saveUsage
var http = require('http');
var clientIp = require('client-ip');
http.createServer(function (req, res) {
var ip = clientIp(req);
res.end(ip);
}).listen(3000);clientIp(request)
request- REQUIRED: http/https server request object