aceberg / WatchYourLAN

Lightweight network IP scanner. Can be used to notify about new hosts and monitor host online/offline history
https://hub.docker.com/r/aceberg/watchyourlan
MIT License
2.59k stars 78 forks source link

Web Gui only shows directory structure #91

Open 3615JMD opened 1 month ago

3615JMD commented 1 month ago

Hi everyone,

I have done a fresh install of WhatchYourLAN: Pointing at the docker host IP:8850 I get the directory structure of the needed files:

http://192.168.1.112:8850/ Index of / (drwxr-xr-x) 27-Jun-2024 17:11 icons/ (drwxr-xr-x) 27-Jun-2024 17:11 node_modules/ (-rw-r--r--) 27-Jun-2024 17:11 3.2k package-lock.json (-rw-r--r--) 27-Jun-2024 17:11 195B package.json Node.js v22.3.0/ http-server server running @ 192.168.1.112:8850

But At IP:8840 where I should see the watchyourlan GUI, there is no answer ! Portainer does not show any published ports either ?!

At least the "wyl_1" container arp-scan works fine: the logs shows all the machines on the LAN.

have you any idea where to look ? best regards Jean-Marc.

3615JMD commented 1 month ago

I have found the issue. I publish in case it helps: The port 8840 was blocked by the host firewall. I figured this out because "curl localhost:8840" showed the whished page in raw html

this command solved the issue: iptables -A INPUT -p tcp --dport 8840 -j ACCEPT

doophy commented 1 month ago

This should really be added to the documentation for the project. With the current doc, the application is only available via localhost. Adding the above firewall rule (or the one I have below for firewalld) allows access from the LAN.

firewall-cmd --permanent --zone=public --add-port=8840/tcp
firewall-cmd --reload