Page 1 of 1
[SOLVED] Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?
Posted: Tuesday 25 September 2018 14:10
by stewdyne
I use Dataplicity.com to access my rpi externally. By using this service you get a url (a so called dataplicity wormhole).
If I put in 127.0.0.1 in my local networks in the Domoticz settings, anybody can directly access my rpi/domoticz if they know the dataplicity wormhole url. No username/password is required since 127.0.0.1 is allowed.
Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?
Re: Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?
Posted: Tuesday 25 September 2018 16:50
by waaren
stewdyne wrote: ↑Tuesday 25 September 2018 14:10
I use Dataplicity.com to access my rpi externally. By using this service you get a url (a so called dataplicity wormhole).
If I put in 127.0.0.1 in my local networks in the Domoticz settings, anybody can directly access my rpi/domoticz if they know the dataplicity wormhole url. No username/password is required since 127.0.0.1 is allowed.
Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?
If you remove 127.0.0.1 some of the dzVents commands (RGBW device and opentherm related) and all scripts containing domoticz.settings['Domoticz url'] will fail.
If it helps you...
if you replace 127.0.0.1 by the actual IP address of your PI and change the string "127.0.0.1" in dzVents/runtime/EventHelpers.lua to this IP address these commands and scripts will still work.
I am not sure that this answer covers the whole story; but this is what I experienced.
Note that the EventHelpers.lua will be overwritten on every domoticz update.
Re: [SOLVED] Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?
Posted: Wednesday 26 September 2018 7:39
by stewdyne
Thank you Waaren! This solved the problem for me.