zulip / zulip-mobile

Zulip mobile apps for Android and iOS.
https://zulip.com/apps/
Apache License 2.0
1.3k stars 655 forks source link

Zulip cannot connect to Zulip server URL #5882

Closed ZelphirKaltstahl closed 3 months ago

ZelphirKaltstahl commented 3 months ago

Regardless of whether I install the mobile app on my Android phone from FDroid or Google Playstore, I cannot get past the first screen, which prompts me to enter a server URL to connect to. No matter how good connection I have, it always shows an error popup:

Could not connect Could not connect to ...(redacted HTTPS URL, same that works in a browser to access my Zulip instance)... . Please check your network connection and try again.

There is only an "OK" button. Try as I might, it does not connect.

Other apps on my phone have Internet connection and I can for example send messages in Signal and so on. Even as I stand right next to my router that provides the WLAN, it still shows that error. So it is definitely not, that my phone does not have connection.

Screenshot from phone:

image

Of course, if I cannot get past the connection screen, I cannot use the app at all and as a consequence cannot access the chat from my phone.

chrisbobbe commented 3 months ago

Thanks for the report, @ZelphirKaltstahl; that sounds frustrating. You mentioned that the same URL works in a browser to access your Zulip instance. Have you seen it working specifically in your mobile device's browser?

ZelphirKaltstahl commented 3 months ago

@chrisbobbe On my mobile device browser (Firefox) I can access the site without problem and it shows the login form. Also on my desktop computer I can access the site without issues.

chrisbobbe commented 3 months ago

Are you able to log in using the login form on Firefox on your mobile device?

ZelphirKaltstahl commented 3 months ago

Yes, logging in also works from mobile phone in browser.

ZelphirKaltstahl commented 3 months ago

If needed, I could somehow tell the devs the URL non-publicly, if you have any ways to do that. It is a single person setup (mine) and I would prefer not to post the URL publicly, because who knows what holes I mistakenly left open.

chrisbobbe commented 3 months ago

Sure. You could DM the URL to me in the Zulip development community and we can debug from there, if you'd like: https://chat.zulip.org/#narrow/dm/13313-Chris-Bobbe

ZelphirKaltstahl commented 3 months ago

Sent you a message there : )

chrisbobbe commented 3 months ago

I checked your hostname on the SSL Labs tester, and it seems like your server doesn't support TLS versions older than 1.3. For the connection to work on your old device, your server will need to support TLS versions that your device supports.

ZelphirKaltstahl commented 3 months ago

So it turns out I configured my server to require a newer TLS version than my phone OS supported. Thanks for pointing me into that direction. Lowering the required version made it work on my phone as well.