Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command-line option to bind server socket to a specific interface #90

Closed
pfisterer opened this issue Aug 28, 2014 · 0 comments
Closed

Comments

@pfisterer
Copy link

It should be possible to bind the server socket to a specific interface (i.e. IP address).

I assume that changing server.js from

var server = http.createServer(app).listen(process.env.PORT || 3000);

to

var server = http.createServer(app).listen(process.env.PORT || 3000, process.env.INTERFACE || '0.0.0.0');

should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant