简体   繁体   中英

Connection refused using Dashing with Raspberry Pi

I've looked everywhere and can't find an elegant solution to this.

I'm trying to run Dashing on a Raspberry Pi - and I'm having problems connecting to the dashboard.

Dashing logs say:

Listening on 0.0.0.0:3030

However, my localhost IP is 127.0.0.1.

Trying to connect via localhost:3030/sample or 127.0.0.1:3030/sample or 0.0.0.0:3030/sample all fail with a (146) Connection Refused.

Pinging localhost/0.0.0.0 both re-route to 127.0.0.1.

I can however connect when I use my network IP address - found using

hostname -I

It works as expected. However, this isn't really a great solution as this IP address may change next time I reboot the Pi.

I am using a proxy, which is defined in both the /etc/environment and /pi/home/.profile files. However, I can't see why that should make a difference.

If anybody might have any clues about this - I'd appreciate it! Thanks.

I don't know anything about Dashing, but my spontaneous reaction is why don't you just assign a static network ip to the Raspberry Pi by adding something like following codes to the /etc/dhcpcd.conf:

   interface eth0
   static ip_address=192.168.0.101/24
   static routers=192.168.0.1

Will that solved your problem?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM