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

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

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

Post by coffeesnob1967 » Tuesday 02 May 2017 17:11

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: 577
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi
Domoticz version: latest
Contact:

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

Post by galadril » Thursday 04 May 2017 10:01

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
Domoticz version:
Contact:

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

Post by coffeesnob1967 » Thursday 04 May 2017 10:42

@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: 119
Joined: Saturday 28 December 2013 0:29
Target OS: Raspberry Pi
Domoticz version: 2.2284
Location: Nederland
Contact:

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

Post by Ron » Tuesday 04 July 2017 23:21

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: 3
Joined: Thursday 06 July 2017 13:45
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by miniomar » Thursday 06 July 2017 14:06

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests