2

I am using Raspberry Pi 3 with Raspbian OS. I installed nodejs on it and started node server on port 3000. I can open it from Raspberry Pi but I can't open it from local network. All I need is to run a web app on my RPI and make it accessible from local network.

This is how I can open it on Raspberry: enter image description here

This is what I see if I try to open it from other computer in the network: enter image description here

Same thing if I try to access it by ip. So how can I make my web app available for other computers in the network?

  • If your Pi is connected via a router you need to configure the router. Configuring a router is not relevant to the Raspberry Pi. – joan Oct 23 '16 at 16:37
  • @joan it has nothing to do with the router. I can connect to Pi via the rdp or putty, which means it's in the network, I want to access it via HTTP as well and I have a server running on it, I just need to open a port. – Andrei Oct 23 '16 at 16:42
  • "It's like behind the firewall or something..." -> You need to make more of an effort to describe the problem if you want an informed opinion about it. – goldilocks Oct 23 '16 at 17:13
  • That is not a description of the problem. That is an elaboration of your diagnosis (firewall) which, if correct, means it has nothing to do with the pi because there is no firewall active by default on Raspbian. Perhaps it is a firewall involving the machines you are trying to access the pi from. – goldilocks Oct 23 '16 at 17:28
  • 1
    I think your server app just listens to 127.0.0.1, set it to 0.0.0.0 – vaha Oct 23 '16 at 21:38
5

To be able to connect to 127.0.0.1 (in other words the loopback IP) does not mean that the server app is bound to all network interfaces of the system.

To listen all existing or will be existed interfaces, an app should be bound to the address 0.0.0.0.

By this way, remote clients will be able to connect to the corresponding IP adresses.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.