client-ip
Get the client IP address of the current request
Last updated 12 years ago by scottcorgan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install client-ip 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

3 Versions

  • 1.0.0                                ...           10 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 6
Today 0
This Week 6
This Month 6
Last Day 3
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE