WatchYourLAN icon indicating copy to clipboard operation
WatchYourLAN copied to clipboard

Cant reach Web-gui

Open g0sy opened this issue 3 years ago • 14 comments

After installing via portainer, i can't reach localhost:8840 nor via the server's IP 192.168.X.X:8840

g0sy avatar Aug 27 '22 07:08 g0sy

Similar here. Docker compose file. No web gui. Logs show network detection and it appears to be scanning correctly with no errors in the logs. Just no gui :(

downtrip avatar Aug 27 '22 10:08 downtrip

Can you please show me the log and an output of command netstat -nlpt | grep 8840

aceberg avatar Aug 27 '22 11:08 aceberg

Log:

today at 12:48:392022/08/27 12:48:39 INFO: DB exists
today at 12:48:39
today at 12:48:39=================================== 
today at 12:48:39Web GUI at http://localhost:8840
today at 12:48:39=================================== 
today at 12:48:39
today at 12:48:392022/08/27 12:48:39 INFO: scanning interface ens18
(network redacted, too much personal info - list of devices, ips, & MACs)

netstat: tcp 0 0 127.0.0.1:8840 0.0.0.0:* LISTEN 468434/./watchyourl FYI Docker is running in a Proxmox VM, Debian 11

downtrip avatar Aug 27 '22 11:08 downtrip

Log:

today at 12:48:392022/08/27 12:48:39 INFO: DB exists
today at 12:48:39
today at 12:48:39=================================== 
today at 12:48:39Web GUI at http://localhost:8840
today at 12:48:39=================================== 
today at 12:48:39
today at 12:48:392022/08/27 12:48:39 INFO: scanning interface ens18
(network redacted, too much personal info - list of devices, ips, & MACs)

netstat: tcp 0 0 127.0.0.1:8840 0.0.0.0:* LISTEN 468434/./watchyourl FYI Docker is running in a Proxmox VM, Debian 11

According to the netstat, GUI is running, but available only from localhost. You need to set the GUIIP variable with the IP address of server you are running this on (may be this Debian 11 VM) or 0.0.0.0 instead, to listen on all interfaces (this is not always secure)

aceberg avatar Aug 27 '22 12:08 aceberg

Can you please show me the log and an output of command netstat -nlpt | grep 8840

image

g0sy avatar Aug 27 '22 12:08 g0sy

You need to set the GUIIP variable with the IP address of server you are running this on (may be this Debian 11 VM)

Sorted, thanks

downtrip avatar Aug 27 '22 12:08 downtrip

Can you please show me the log and an output of command netstat -nlpt | grep 8840

image

Seems like it's the same problem, as downtrip posted. By default, web GUI is listening 127.0.0.1 for securuty reasons. You need to set GUIIP variable to the IP you want it to listen on.

aceberg avatar Aug 27 '22 12:08 aceberg

Sorted as well! Thanks!

g0sy avatar Aug 27 '22 12:08 g0sy

Log:

today at 12:48:392022/08/27 12:48:39 INFO: DB exists
today at 12:48:39
today at 12:48:39=================================== 
today at 12:48:39Web GUI at http://localhost:8840
today at 12:48:39=================================== 
today at 12:48:39
today at 12:48:392022/08/27 12:48:39 INFO: scanning interface ens18
(network redacted, too much personal info - list of devices, ips, & MACs)

netstat: tcp 0 0 127.0.0.1:8840 0.0.0.0:* LISTEN 468434/./watchyourl FYI Docker is running in a Proxmox VM, Debian 11

According to the netstat, GUI is running, but available only from localhost. You need to set the GUIIP variable with the IP address of server you are running this on (may be this Debian 11 VM) or 0.0.0.0 instead, to listen on all interfaces (this is not always secure)

I'm still having issues connecting even with setting the GUIIP and GUIPORT. netstat reports:

tcp 0 0 <my internal ip>:8840 0.0.0.0:* LISTEN 546991/./watchyourl

Logs are showing the list of devices so it's running. Any ideas?

lindenmj avatar Aug 28 '22 02:08 lindenmj

Log:

today at 12:48:392022/08/27 12:48:39 INFO: DB exists
today at 12:48:39
today at 12:48:39=================================== 
today at 12:48:39Web GUI at http://localhost:8840
today at 12:48:39=================================== 
today at 12:48:39
today at 12:48:392022/08/27 12:48:39 INFO: scanning interface ens18
(network redacted, too much personal info - list of devices, ips, & MACs)

netstat: tcp 0 0 127.0.0.1:8840 0.0.0.0:* LISTEN 468434/./watchyourl FYI Docker is running in a Proxmox VM, Debian 11

According to the netstat, GUI is running, but available only from localhost. You need to set the GUIIP variable with the IP address of server you are running this on (may be this Debian 11 VM) or 0.0.0.0 instead, to listen on all interfaces (this is not always secure)

I'm still having issues connecting even with setting the GUIIP and GUIPORT. netstat reports:

tcp 0 0 <my internal ip>:8840 0.0.0.0:* LISTEN 546991/./watchyourl

Logs are showing the list of devices so it's running. Any ideas?

Looks like the GUI is working, but you can't reach it. Maybe look at your firewall settings and if port 8840/tcp is open? Try curl <my internal ip>:8840 from your docker host, it should show the page

aceberg avatar Aug 28 '22 03:08 aceberg

Looks like the GUI is working, but you can't reach it. Maybe look at your firewall settings and if port 8840/tcp is open? Try curl <my internal ip>:8840 from your docker host, it should show the page

Yes, curl pulled up the page. At your suggestion I opened up 8840 with ufw allow 8840 and now we're sorted! I hadn't needed to do that with any other of my docker containers, but here I did. Thank you!

lindenmj avatar Aug 28 '22 13:08 lindenmj

Yes, curl pulled up the page. At your suggestion I opened up 8840 with ufw allow 8840 and now we're sorted! I hadn't needed to do that with any other of my docker containers, but here I did. Thank you!

You are welcome! This container uses host network to access interfaces, so it's not automatically port-forwarded by docker

aceberg avatar Aug 28 '22 14:08 aceberg

@aceberg Is's possible to expose multiple IPs? For example I use tailscale and I would like to reach the GUI inside my Tailscale VPN as well as in LAN. I was wondering if something works as follows

GUIIP = "192.168.2.1, XXX.XXX.XXX.XXX" Thanks

corasaniti avatar Sep 14 '22 11:09 corasaniti

@corasaniti No, right now it's not possible. I'll think about adding this feature For now you can set GUIIP to 0.0.0.0 to listen on all IPs and limit access to it with firewall

aceberg avatar Sep 14 '22 16:09 aceberg