Categories
express node.js

How to bind http server with express object to a specific ip address?

How do i bind a specific address to a http object? Currently the default ip address for node.js is 127.0.0.1 and I want to change it to 0.0.0.0

var express = require('express');
var app = express();
var http = require('http').Server(app);
http.listen(3000, "0.0.0.0");

How to achieve that?

edited: I added 0.0.0.0 but the default is still 127.0.0.1