Bind expressjs to a specific IP address
ExpressJS just passes your parameters down to the http
module when you call listen, so your example should work.
Is that not the case?
var server = app.listen(3000, '127.0.0.1',onServerListening);
In this case I want the server to respond only to connections using the 127.0.0.1 host name. Not 0.0.0.0, and not localhost. Only 127.0.0.1.