Most Popular Tutorials
Most Popular Tutorials :-

Simply Easy Learning at Your Fingertips. Click Tutorials Menu to view More Tutorial List





How to get ClientIp Address in NodeJs?

Install request-ip Library

npm install request-ip --save

Create Server.js File

File Name :

var express = require('express');
var requestIp = require('request-ip');
var app = express();

app.get('/',function(req, res) {

var client_Ip = requestIp.getClientIp(req);
console.log(client_Ip );

});

app.listen(3000, () => console.log(`App listening on port 3000`))





Previous Next


Trending Tutorials




Review & Rating

0.0 / 5

0 Review

5
(0)

4
(0)

3
(0)

2
(0)

1
(0)

Write Review Here