×Welcome aboard! We are happy you are here and wish you good net-raft!



Together We Can Simplify The World
Just a Web Code Solution

the current number of solutions:  2529

You Can Join us too!

it news shareTrending in the Internet industry

Discover and Share trending in the Internet industry from all around the world.
Click to see more ...

  19     276

get client ip address node js

(nodejs client ip address node)

- NODEJS

 29

created: 7 months agoNODEJS

2

// at first you install "npm install ip" in node.js command prompt

//put this code into getip.js
var http = require('http');
var ip = require('ip');

var srv = http.createServer(function (req, res) {
var address = ip.address();

res.writeHead(200, {'Content-Type': 'text/plain'});
res.end(address);

});

srv.listen(3000);
console.log("Listening to Port 3000");

// type "node getip.js" in command prompt
// then put this url "http://localhost:3000/address" into any browser

     

The power of the user (%)

3%



The most helpful NODEJS solutions

get user ipget user ipNODEJS

Click to see more ...

  3.8K     1.7K

how to get client netmask using node.js ?how to get client netmask using node.js ?NODEJS

Click to see more ...

  1.6K     542

How to get client machine name and computer name with node.js?How to get client machine name and computer name with node.js?NODEJS

Click to see more ...

  1.6K     408

how to get client local ip address using node.js ?how to get client local ip address using node.js ?NODEJS

Click to see more ...

  1K     305

How to get client ip address using node.jsHow to get client ip address using node.jsNODEJS

Click to see more ...

  721     251

How to combine node.js and jquery ?How to combine node.js and jquery ?NODEJS

Click to see more ...

  627     247

how to detect tablet, iPad, iPhone, Android and Blackberry using nodejs ?how to detect tablet, iPad, iPhone, Android and Blackberry using nodejs ?NODEJS

Click to see more ...

  552     132

how to update a record in mysql using node.js ?how to update a record in mysql using node.js ?NODEJS

Click to see more ...

  254     117

get client region using node.js ?get client region using node.js ?NODEJS

Click to see more ...

  249     107

get real user ip address using node.js?get real user ip address using node.js?NODEJS

Click to see more ...

  240     104