Page 1 of 1
domoticz app not working after phone reset
Posted: Friday 24 January 2025 17:06
by 2Stroke
Hi,
I am using Domoticz since 2018 with great pleasure. Due to a change of employer i had to reset met Android phone samsung A53. After downloading the app (version 0.2.381) i can't get it to work. I tried to acces on my tablet but got the same result. Unfortunately i didn,t make notes of the Domoticz app settings so i am unsure if i did it right. I've added a screenshot to show what i am using.
For local acces i used http and port 8080. I checked the password through loggin in via a browser on my laptop and it works fine.
I checked the ports in domoticz.sh so i am sure they are correct.
When i start the app it tries to connect for minutes then it says (something went wrong, check your settings."
I have searched this forum for hours but didn't find clear instructions. Can anyone help me out.
Domoticz is running on a RaspPi 3B, version 2024.7
Re: domoticz app not working after phone reset
Posted: Friday 24 January 2025 17:16
by jvdz
That start of the IP address is an public internet address, so are you trying to connect via the outside?
If so, you must have a port forward setup in you internet router. Did you check what is defined there?
Re: domoticz app not working after phone reset
Posted: Saturday 25 January 2025 10:44
by jannl
And if you do so, I wouldn't use the default 443, but a much higher port which often isn't found (like 54321 or so) and forward that port internally to 443.
Re: domoticz app not working after phone reset
Posted: Saturday 25 January 2025 13:11
by 2Stroke
i am trying to connect via the outside, but also via an internal ip number. At home i can reach Domoticz via a browser and everything works. This has worked untill a week ago. nothing changed on my router. Only my phone,
Can you assure these are the correct settings in the app? or point me to a post where is described?
i am using port 443. The last days i learned this is a security risk, thank you for bringing this to my attention. Once i get the app working again on the existing router settings, I will change this. For now i want to limit the variables.
Re: domoticz app not working after phone reset
Posted: Saturday 25 January 2025 13:27
by jvdz
All you really need to do is to use the exact same information as you use in the Computer Browser:
- Ip address
- port
- Username
- Password
.. and things should work. In the App you can define 2 IP-Address/Port combinations: One for internal and one for external use.
Just start with trying to get it to connect via the internal LAN and check the Domoticz log for errors when trying to connect.
Re: domoticz app not working after phone reset
Posted: Saturday 25 January 2025 14:08
by 2Stroke
It's working again

Just to be sure i checked port forwarding in my Ziggo router. There was no line for ssl so i added a line for port 443. It fixed the problem, nice. But now i'm wondering why it worked before? I didn't change anything in my router for over a year. I let this rest.
Then i wanted to up security and changed the port in domoticz.sh.
OLD: DAEMON_ARGS="$DAEMON_ARGS - sslwww -443"
NEW: DAEMON_ARGS="$DAEMON_ARGS - sslwww -54300" . Rebooted my raspPI and added a forwarding line in my router for this port but then Domoticz didn't work anymore. Not even via a browser.
Changed it back to 443 and have a working app again. For now i'm happy. Any advice on the correct way to change the SSL port?
Re: domoticz app not working after phone reset
Posted: Saturday 25 January 2025 16:03
by waltervl
Normally you have to set it in the file
/etc/init.d/domoticz.sh
And restart the Domoticz service.
Re: domoticz app not working after phone reset
Posted: Saturday 25 January 2025 16:37
by jvdz
2Stroke wrote: ↑Saturday 25 January 2025 14:08
It's working again

Just to be sure i checked port forwarding in my Ziggo router. There was no line for ssl so i added a line for port 443. It fixed the problem, nice. But now i'm wondering why worked before, i didn't change anything in my router for over a year. I let this rest.
Maybe you used an VPN from your phone to connect to your Home LAN? That way you could connect using the LAN ip.
2Stroke wrote: ↑Saturday 25 January 2025 14:08
Then i wanted to up security and changed the port in domoticc.sh.
OLD: DAEMON_ARGS="$DAEMON_ARGS - sslwww -443"
NEW: DAEMON_ARGS="$DAEMON_ARGS - sslwww -54300" . Rebooted my raspPI and added a forwarding line in my router for this port but then it didn't work anymore. Not even via a browser.
Changed it back to 443 and have a working app again. For now i'm happy. Any advice on the correct way to change the SSL port?
Not sure why you need to use another port on the inside, but I would use a HIGH PORT on the outside of the NAT in your router.