LearnBoost/socket.io — Issue #675: Allow me to specify port AND hostname on .listen()
Author: andyuk
Created: 2011-12-02 11:22:29+00:00
State: open

Hi,

It's important in my app that it listens on a specific IP address. Having the option to pass the hostname would solve this.

Currently I can only use:
.listen(port)

I am working around this by creating a HTTP server myself.

How about supporting:

var options = {
port: 80,
hostname: 'localhost'
};
.listen(options)

Supporting a config option would mean it could still be backwards compatible.

Thanks,
Andy