How can i bind a expressjs server to a specific IP
Something like
app.listen(8888, '192.168.0.101');
Equivalent to nodejs:
http.createServer(onRequest).listen(8888,'192.168.0.101');
See Question&Answers more detail:osHow can i bind a expressjs server to a specific IP
Something like
app.listen(8888, '192.168.0.101');
Equivalent to nodejs:
http.createServer(onRequest).listen(8888,'192.168.0.101');
See Question&Answers more detail:osExpressJS just passes your parameters down to the http
module when you call listen, so your example should work.
Is that not the case?