Installed latest Dashticz beta on RaspberryPi 3B and working well in my lan network
Setup the ngrok tunnel to allow external access to my RaspberryPi.
I used http://dash.mydnsname.com:9091 to access the apache web server. With this address, apache default page shows successfully.
But as I try http://dash.mydnsname.com:9091/dashticz the Dashticz V3 startup animation(the lighting circle) appears, but later, shows the error message: Error, For more help visit Dashticz V3 documentation only black background, nothing more shows up.
what is the problem?
Dashticz can't work with ngrok tunnel connection
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz can't work with ngrok tunnel connection
What do you use fortonywk wrote: ↑Tuesday 04 February 2020 9:33 Installed latest Dashticz beta on RaspberryPi 3B and working well in my lan network
Setup the ngrok tunnel to allow external access to my RaspberryPi.
I used http://dash.mydnsname.com:9091 to access the apache web server. With this address, apache default page shows successfully.
But as I try http://dash.mydnsname.com:9091/dashticz the Dashticz V3 startup animation(the lighting circle) appears, but later, shows the error message: Error, For more help visit Dashticz V3 documentation only black background, nothing more shows up.
what is the problem?
Code: Select all
config['domoticz_ip'] = ???
Re: Dashticz can't work with ngrok tunnel connection
My home network doesn't have public IP address, so I use ngrok to setup the tunnel connection so that I can access my home network domoticz server where ever I have internet access with my mobile, laptop etc.
I used to setup ngrok tunnel and used web brower to visit domoticz page directly and use domoticz lite android app. But Dashticz definitely is a much better choice. After I setup the Dashticz successfully in home network, I then created the new ngrok http tunnel, tryed to visit it, the method is the same as what I visited my domoticz web page, but problem occurs as described above.
I used to setup ngrok tunnel and used web brower to visit domoticz page directly and use domoticz lite android app. But Dashticz definitely is a much better choice. After I setup the Dashticz successfully in home network, I then created the new ngrok http tunnel, tryed to visit it, the method is the same as what I visited my domoticz web page, but problem occurs as described above.
Re: Dashticz can't work with ngrok tunnel connection
I will try your public IP address suggestion.
My domoticz and dashticz are on the same Raspberry Pi. I think by setting domoticz_ip to local 192.168.1.xxx, dashticz is able to talk to domoticz server, I doubt if it need to route to external network connections through ngrok tunnel and end up visiting the same local domoticz server.
The ngrok tunnel is only used to visit the apache server, the default apache server web page showed successfully, so I presume the whole setup is ok. by adding /dashticz to the apache home page link I can see the Dashticz V3 loading animation, so I think the conection to Dashticz is good too. Dashticz must have done sth special to prevent the further page show up with this setup.
My domoticz and dashticz are on the same Raspberry Pi. I think by setting domoticz_ip to local 192.168.1.xxx, dashticz is able to talk to domoticz server, I doubt if it need to route to external network connections through ngrok tunnel and end up visiting the same local domoticz server.
The ngrok tunnel is only used to visit the apache server, the default apache server web page showed successfully, so I presume the whole setup is ok. by adding /dashticz to the apache home page link I can see the Dashticz V3 loading animation, so I think the conection to Dashticz is good too. Dashticz must have done sth special to prevent the further page show up with this setup.
Re: Dashticz can't work with ngrok tunnel connection
Detail describe my network setup:
I purchased the public server (google cloud) and a domain name, domain name link to this server ip, then installed ngrok server on it.
I installed ngrok client in my home network and created the tunnel: http://dash.my domain name.com:9091 -> 192.168.1.11:9091(my local network apache address)
By visiting http://dash.my domain name.com:9091/dashticz I should be able to launch dashticz page
I purchased the public server (google cloud) and a domain name, domain name link to this server ip, then installed ngrok server on it.
I installed ngrok client in my home network and created the tunnel: http://dash.my domain name.com:9091 -> 192.168.1.11:9091(my local network apache address)
By visiting http://dash.my domain name.com:9091/dashticz I should be able to launch dashticz page
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz can't work with ngrok tunnel connection
Dashticz runs in your browser. It opens a connection from your browser to 'domoticz_ip'. So if you open Dashticz on a browser ouside your LAN then domoticz_ip needs to be a public IP address.
There is already a feature request to make it possible to proxy all requests to Domoticz via the Dashticz server. See:
https://github.com/Dashticz/dashticz/issues/151
and
https://github.com/Dashticz/dashticz/issues/241
There is already a feature request to make it possible to proxy all requests to Domoticz via the Dashticz server. See:
https://github.com/Dashticz/dashticz/issues/151
and
https://github.com/Dashticz/dashticz/issues/241
Re: Dashticz can't work with ngrok tunnel connection
Now I understand, thanks!
Will try the public ip and wait for the new feature implementation.
Will try the public ip and wait for the new feature implementation.
Who is online
Users browsing this forum: No registered users and 1 guest