So you're using HTTPS on the outside and HTTP in the local network?Bikey wrote:I'm using the latest version of Pilot which works fine on my internal network. When accessed from an external location however only partly:
Externaly I'm using NGinx as a reverse proxy which forwards all external HTTPS-request internaly to the HTTP-port 8080 on my Domoticz.
NGINX and Domoticz goth run on the same Raspberry PI 2. I also let NGinx do the authentication (username/password), so I have no authentication set on Domoticz (first tried by excluding the internal IP-addresses and 127.0.0.*, but that didn't work. Then by removing the username/password altogether in Domoticz).
The strange thing is, that I can succesfully control Domoticz externally (so authentication on NGinx is Ok, self-signed certificated is Ok), but I still get, for each successfull action or update, also an Error: Failed login attempt from 127.0.0.1 for user 'xxxx' ! (xxx is the name as set in the settings screen).
So it looks like the authentication is done first in Nginx (successfull), but then also tried in Domoticz. How can we fix this?
Has anybody else got this working succesfully with NGinx?
* EDIT *
I tested again, now with setting the same username and password in Domoticz as in NGinx and now I only get this error once:
Error: Failed login attempt from 127.0.0.1 for 'xxxxx' ! Notice that this error is slighly different from:
Error: Failed login attempt from 127.0.0.1 for user 'xxxx' !
Perhaps GizmoGuz can explain?
P.s. I'm using NGinx because that allows me to block access from specific countries, have better logging and also block IP-adresses after too many unsuccessful attempts.
I think that might be an issue. As far as I can remember, the way I implemented it is that both should use the same encryption: HTTP for both, or HTTPS for both.
Do you have a way to test it on your side?
That way we can check if the issue really comes from it.

Can you try connecting directly to your local IP address (instead of the ddns.net one)?fantastrick wrote:Let me start by saying I am quite the n00b...
So here is my question; I downloaded the app and installed it but after filling in the data (as listed below) it can't connect to anything.
My steps:
Installed the app on the iPhone
Filled out the following in the app:
Address: http://my ddns.net address
Port: My custom port (forwarding is working)
SSL No
Self signed: No
Requires login: my user and pass
Tried with local server on and off, when on:
Network name: filled out with the correct name
Address: http://192.xxxxxxxxx
Port: My custom port
I searched the forum but could not find a good solution yet. Anyone some suggestions maybe?
Does that work?