Greetings!
I have an issue with accessing the node-red dashboard on the host machine via http://localhost:1880/ui. This port is accessible via other machines on the network but when I try to access the dashboard directly on the raspberry pi touch screen i get this error. I am using weston / COG /wpe webkit to load the GUI on the raspberry pi.
I have a bash script /usr/bin/dashboard
that uses COG to display the app:
#!/usr/bin/env sh
COG_PLATFORM_FDO_VIEW_FULLSCREEN=1 cog -P fdo http://localhost:1880/ui
I have alternatively tried to use the ip address instead of localhost and I get
Could not connect. Network is unreachable
The weston configuration is: /home/alarm/.config/weston.ini
its contents are as follows:
core]
idle-time=0
require-input=false
[shell]
client=/usr/bin/dashboard ------>my bash script...
animation=none
close-animation=none
startup-animation=none
locking=false
[output]
name=
mode=
my network is configured using the network manger configured with a static ip of 10.0.0.10 using the wlan0 interface.
If I change change the target in in my ssh stcript to any other public site it works so I think it must something to do with the routing or maybe a firewall but I'm not sure how to determine the cause.
Below are some commands that I ran and their respective output in an attempt to learn more but I am not an expert on network configurations by any means.
ip route
result:
default via 10.0.0.1 dev wlan0 proto static metric 600
10.0.0.0/24 dev wlan0 proto kernel scope link src 10.0.0.10 metric 600
sudo netstat -tnlp | grep :1880
result:
tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 277/node-red
or....
sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 266/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 297/sshd: /usr/bin/
tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 277/node-red
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 266/systemd-resolve
tcp6 0 0 :::22 :::* LISTEN 297/sshd: /usr/bin/
tcp6 0 0 :::5355 :::* LISTEN 266/systemd-resolve
and lastly...
iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
How do I make that ip reachable on the host machine?
Thanks!