2 posts / 0 new
Last post
nilsmau
iOS App Not Connecting via URL (Self Hosted Server)

I am trying to get the iOS App to connect to my self hosted server. 

What works: 
iOS App: Connecting in LAN via LAN IP & port 6867
Browser: in LAN via LAN IP & port 6867 (connection will be closed by the OVMS Server, that is okay)
Browser: via URL ovms.home.*******.de Port 80 -> Nginx Reverse Proxy -> LAN IP & port 6867 (connection will be closed by the OVMS Server, that is okay)
via URL, the Nginx reverse proxy shows something in the logs, for all three cases I can see logs in ovms_server.pl output, for both ways trying to access (obviously that is not foreseen) by browser ovms logs show

2024-11-26 18:10:40.918838 +0000 info  OVMS::Server::Core: #8 - - ConnStart
2024-11-26 18:10:40.919109 +0000 info  OVMS::Server::Core: #8 - - ConnFinish

What does not work:
iOS App: via URL ovms.home.*******.de Port 80 -> Nginx Reverse Proxy -> LAN IP & port 6867
in this case, neither the Nginx do show ANY connection nor does the OVMS Server print something. As it seems to me, the App just does not connect.
The total length of the url is 30 character (excl. http:// or https://)

Any advice would be appreciated... I would like connect via iOS App to my own server instance via the public URL to be able to connect on the go.

Thanks!
 

markwj
markwj's picture
Answered in support ticket

Answered in support ticket that OVMS protocol v2 is not HTTP so cannot run through a NGINX reverse proxy. Better to just handle it with normal network-level destination NAT port forwarding.

Log in or register to post comments