Set up node so it is externally visible?

后端 未结 2 446
失恋的感觉
失恋的感觉 2020-12-16 13:08

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 o

2条回答
  •  旧时难觅i
    2020-12-16 13:28

    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.

提交回复
热议问题