You dont have to listen on specific host, just app.listen(3000) should
work.As long as your localhost resolves its should work.
--
regards,
Prashanth
twitter: munichlinux
irc: munichlinux, JSLint, munichpython.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
> Is it somehow possible, to
> have 2 versions of nodes on the server and tell forever to run express
> apps with a certain node (Just in case, some of you use 'forever' and
> deal with different node versions)?
For this, I believe you will want to look into nvm.
https://github.com/creationix/nvm
> thanks for this advice. I installed nvm. It's really great. After
> installing v0.4.9, app.listen(3000, 'localhost') worked as expected.
>
> However, I ran into a new issue. "forever" requires a higher node
> version. Any solution for that?
Then install a newer version of node :) or perhaps an older version of forever if you really need to. But if there's a problem with the current versions of the software, I'm sure the authors would want to hear about it so they can fix it.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
> But it's a common thing to bind
> your apps to the loopback device if you don't want it to communicate
> with the outside world.
That sounds good. How do I do that?
> app.listen(3000, 'localhost');
>
> You can provide certain IP addresses or hostnames to let an app only
> listen on those IP addresses. The default is to listen to 0.0.0.0,
> which means I take any request from anywhere for port 3000. Check
> "netstat -ap|grep node" and have a look. The default is that your app
> listens to *:3000. After providing localhost as hostname in
> app.listen() you should see something like localhost.localdom:3000
>
> But be aware that you use express 2.5.5 with a 0.4.* version of nodejs
> as figured out now. :)
I've moved on to node 0.6.x. Does anybody know if this is a bug in 0.6.x, or if there's a different way to do this in 0.6.x, or whether this feature has been removed?
--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.