Not connecting to remote node.js server?

42 views
Skip to first unread message

Matthew Mitsui

unread,
Jul 31, 2014, 11:57:37 AM7/31/14
to nod...@googlegroups.com
Hi,

I'm using node.js to make an HTTP server on a remote machine.  I listen on a fixed port - call it port 9005.  I've toggled between using "0.0.0.0", "127.0.0.1", the host name, and the IPv4 inet address of the machine as the IP address for listening.  When I try to connect to this machine through my browser (specifying both hostname and port), I get no response.

Assume there are no firewall issues.  I've made simple hello world TCP and HTTP servers on this remote machine, using Java, and both of them work on port 9005 (I connect and get responses).  This makes me think that I may be using node.js incorrectly.  Is there some external dependency that I need to use with node.js?  My code for making a listening server is very much like the hello world code for the HTTP server on the main page.

Thanks in advance!

Wil Moore

unread,
Aug 1, 2014, 1:53:20 AM8/1/14
to nod...@googlegroups.com

Assume there are no firewall issues.  I've made simple hello world TCP and HTTP servers on this remote machine, using Java, and both of them work on port 9005 (I connect and get responses).  This makes me think that I may be using node.js incorrectly.  Is there some external dependency that I need to use with node.js?  My code for making a listening server is very much like the hello world code for the HTTP server on the main page


A gist with actual code would go a long way my friend :)

 

greelgorke

unread,
Aug 1, 2014, 2:49:06 AM8/1/14
to nod...@googlegroups.com
very much like? so its not the same? so post it here
Reply all
Reply to author
Forward
0 new messages