Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
89
rated 0 times [  90] [ 1]  / answers: 1 / hits: 37419  / 13 Years ago, wed, november 30, 2011, 12:00:00

Newbie question - might be more appropriate for ServerFault, apologies if so.



I'm setting up node on Ubuntu 11.10, following the excellent howtonode instructions on installing Node.



I can get the Hello World page running on 127.0.0.1:8000, but how do I set it up to appear for my server's external IP?



I'm used to configuring Apache - what's the node equivalent of Apache's Hello World page?



Thanks for your help.



UPDATE: Maybe what I need is a tutorial on hosting Node. Would be great if anyone could suggest a good one.


More From » node.js

 Answers
8

There is no configuration needed to make your external IP address work with node.js, unless and until you bind it otherwise.



Instead of .listen(PORT, IP_ADDRESS_OR_HOST ); use .listen(PORT);



Then, just use IP_ADDRESS_OR_HOST:PORT to access it.


[#88829] Tuesday, November 29, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kennedysaraiw

Total Points: 552
Total Questions: 99
Total Answers: 109

Location: South Sudan
Member since Sun, Jul 11, 2021
3 Years ago
kennedysaraiw questions
Tue, Dec 14, 21, 00:00, 3 Years ago
Sun, Jul 11, 21, 00:00, 3 Years ago
Mon, May 17, 21, 00:00, 3 Years ago
Fri, Mar 12, 21, 00:00, 3 Years ago
;