Android App can’t reach domoticz server from web. (not a port forwarding issue)

Moderator: leecollings

Post Reply
coffeesnob1967
Posts: 3
Joined: Tuesday 02 May 2017 16:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by coffeesnob1967 »

Greetings, I am very new to the world of domoticz but I like it a lot. Very powerful application and easy to use, but I am having a couple of issues. First off, please forgive me if I have posted this in the wrong place, I have had a good look through the forum and found a number of posts that kind of sounded similar here so I am hoping for the best.
So here is my issue. I have built a domoticz on a raspberry pi, I am using version 3.5877, I have a couple of devices that I have built using Mysensor. This is all working exactly as I expect it to and I am pretty happy.
I have my rpi on my network and I have setup a static port forward (port 80) to my public IP address where I have a domain name pointed. For the time being I am only using http (I am very well aware of the risks) I have the domoticz android app running and I have paid for the full version because I want to setup multiple servers.
Here is where I get an issue. The android app connects 100% perfectly when my smartphone is connected to my network using the internal server IP address. As stated above I am using http and for simplicity I am using port 80 (I will change this to https and a totally random port later, so please don’t get hung up on this point) however if I try to connect using either my external IP address or my domain name the app can’t connect to the server. The ports are the same so this is rather odd.
if I try to open the server page on a web browser on my pc it works perfectly using both the internal address or the external address.
I am wondering if the app connects to the server using a second port that we don’t know about? If so what is it so I can present that second port to the world and see if that fixes it.
I should point out, I’m not very strong when it comes to scratching around under the hood of my android phone, so if you need any further info about the phone OS of the app version, you will have to be specific in how I find it. I will do my best to provide as much information as I can to solve this issue because it is killing my joy of this great product and I cant use it without the phone app working from the world.

Thanks in advance.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by galadril »

The app has local and remote server settings.

- local server settings is when you're at your home network. When you set the local settings, you also have to select your SSID of your local network.
- remote server settings is for the outside world.

you could test this also by browsing your remote ip to see if you have any connection with it.
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
coffeesnob1967
Posts: 3
Joined: Tuesday 02 May 2017 16:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by coffeesnob1967 »

@galadril thanks for the reply. I have gone back and double checked everything and I also went onto the web browser on my phone and connected using the domain name. after doing that successfully the app now works.. go figure. I now have an issue with Geofencing but I will post that separately. thanks again for your help.
Ron
Posts: 82
Joined: Friday 27 December 2013 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2284
Location: Nederland, Den Bosch
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by Ron »

I must say that the server settings in this Android app are not quit logical, or even simple to understand.
The best word i think is confusing, these settings should be made better.
miniomar
Posts: 4
Joined: Thursday 06 July 2017 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by miniomar »

Hello to everybody

I have an similar issue with domoticz lite. Below my setup. May you suggest something ?

Domoticz ver. 3.5877, installed on PC with WIN7 OS.
I'm using an AEON USB Stick gen5 (zwave ctrl) to drive one lamp with a qubino flush relay.
The PC is connected to a router DGN2200v3 netgear.
I installed on my android smartphone the domoticz lite app (Domoticz Home Automation Lite).
If I'm connected to my lan the android app works perfectly.
If I tried from 3G/4G netwrok it doesn't work.
Probably I have to modify some parameter in the setup menu of domoticz, not well settled, but I'm a bit confused.
any suggestion ?
Thanks in advance
Jimmy06
Posts: 10
Joined: Tuesday 30 January 2018 22:07
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: France
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by Jimmy06 »

Hi,
I am having exactly the same problem.
Did you find a way to solve it?
Thank you
Jimmy
Synology 1010+ & DS216+ & DS720+ / PI 3 & Domoticz 2021.1 / RFPlayer / ZStick gen5 / Tasmota / Espeasy
billouetaudrey
Posts: 10
Joined: Saturday 10 February 2018 14:14
Target OS: -
Domoticz version:
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by billouetaudrey »

Hi,

Need to redirect your ip server with 8080 port in your router



ScreenShot in frenchImage

Envoyé de mon Redmi Note 4 en utilisant Tapatalk

Jimmy06
Posts: 10
Joined: Tuesday 30 January 2018 22:07
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: France
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by Jimmy06 »

Thanks,

That's what I did, but not with the good port.
Everything's solved !

Jimmy
Synology 1010+ & DS216+ & DS720+ / PI 3 & Domoticz 2021.1 / RFPlayer / ZStick gen5 / Tasmota / Espeasy
billouetaudrey
Posts: 10
Joined: Saturday 10 February 2018 14:14
Target OS: -
Domoticz version:
Contact:

Re: Android App can’t reach domoticz server from web. (not a port forwarding issue)

Post by billouetaudrey »

Jimmy06 wrote:Thanks,

That's what I did, but not with the good port.
Everything's solved !

Jimmy
Great :)

Envoyé de mon Redmi Note 4 en utilisant Tapatalk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest