Jika service nodejs hanya bisa di akses via local lakukan hal berikut ini.

You have to open 3000 port so that it can be accessed from remote machines. You can do that in iptables file. Use below command to open file

vi /etc/sysconfig/iptables

now add below line before the reject lines in that file

-A INPUT -p tcp -m tcp --dport 3000 -j ACCEPT

Now restart iptables service using below command

service iptables restart

Now you restart your server and try again. It should work..

http://stackoverflow.com/questions/15492575/node-js-cannot-access-server-from-different-device-on-the-same-network

Advertisements