client-ip

1.0.0 • Public • Published

client-ip

Get the client IP address of the current request

Install

npm install client-ip --save

Usage

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

Package Sidebar

Install

npm i client-ip

Weekly Downloads

63

Version

1.0.0

License

MIT

Last publish

Collaborators

  • scottcorgan