Port-forwarding w/ node.js & apache

442 views
Skip to first unread message

mkrecny

unread,
Jan 22, 2011, 11:56:43 AM1/22/11
to Vagrant
Hi Guys - I'm port forwarding to an http server scripted in node.js -
whilst port forwarding apache at the same time. The node server is
receiving requests fine from localhost on the vm but not via the
forwarded port on the host machine...any thoughts?

Mitchell Hashimoto

unread,
Jan 22, 2011, 2:29:06 PM1/22/11
to vagra...@googlegroups.com

This is usually caused because the node.js server is probably binding
itself to 127.0.0.1 which is the loopback interface, where it really
needs to bind itself to 0.0.0.0 so it is visible to the outside world.

Best,
Mitchell

Reply all
Reply to author
Forward
0 new messages