[SOLVED] Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
stewdyne
Posts: 20
Joined: Friday 20 July 2018 7:55
Target OS: Windows
Domoticz version:
Contact:

[SOLVED] Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?

Post 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?
Last edited by stewdyne on Wednesday 26 September 2018 7:39, edited 1 time in total.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
stewdyne
Posts: 20
Joined: Friday 20 July 2018 7:55
Target OS: Windows
Domoticz version:
Contact:

Re: [SOLVED] Is it possible to use Dzvents without setting 127.0.0.1 in local networks, or use another IP?

Post by stewdyne »

Thank you Waaren! This solved the problem for me.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest