domoticz app not working after phone reset

Moderator: leecollings

Post Reply
2Stroke
Posts: 3
Joined: Friday 24 January 2025 16:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

domoticz app not working after phone reset

Post 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.
Image

Domoticz is running on a RaspPi 3B, version 2024.7
Attachments
Screenshot_20250124-161559.png
Screenshot_20250124-161559.png (112.42 KiB) Viewed 430 times
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: domoticz app not working after phone reset

Post 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?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: domoticz app not working after phone reset

Post 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.
2Stroke
Posts: 3
Joined: Friday 24 January 2025 16:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz app not working after phone reset

Post 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.
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: domoticz app not working after phone reset

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
2Stroke
Posts: 3
Joined: Friday 24 January 2025 16:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz app not working after phone reset

Post 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?
Last edited by 2Stroke on Sunday 26 January 2025 16:14, edited 1 time in total.
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: domoticz app not working after phone reset

Post by waltervl »

Normally you have to set it in the file
/etc/init.d/domoticz.sh
And restart the Domoticz service.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: domoticz app not working after phone reset

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest