# Unable to connect to Mattermost server using Android phone

**URL:** <https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894>\
**Category:** Troubleshooting\
**Created:** [May 2, 2018, 10:07am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894 "2018-05-02T10:07:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kongyc870320](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kongyc870320](https://forum.mattermost.com/u/kongyc870320)\
**Post date:** [May 2, 2018, 10:07am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/1 "2018-05-02T10:07:24Z")

</div>

Hi,

I have a Mattermost server hosted in google cloud, [https://chat.3lc.my:8065](https://chat.3lc.my:8065), using nginx, with Letsencrypt as SSL.

I can login or connect to my mattermost server using iphone, iPad and all browsers, but didn’t work on my android phones.

FYI I’m using Mattermost Team Edition 4.0.3.

Is there any suggestion to work around?

Thank you.  
Kong

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [May 4, 2018, 7:58am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/2 "2018-05-04T07:58:21Z")

</div>

Hi @kongyc870320,

Thanks for your feedback,

Can you try upgrading to the [latest server version](https://about.mattermost.com/download/#mattermostServer) of Mattermost to see whether your issue still exists?

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 5, 2018, 11:51pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/3 "2018-05-05T23:51:27Z")

</div>

I’m having the same issue as well. When I upgrfaded to 4.9.1 I lost the ability to connect with the Android app.

I’ve upgraded to 4.9.2 and I’m still having the same issue(s). The web interface works fine, but the Android app simply refuses to connect. No error message, and nothing in the mattermost logs that I can see.

---

<div class="post-metadata">

**Author:** ![kongyc870320](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kongyc870320](https://forum.mattermost.com/u/kongyc870320)\
**Post date:** [May 6, 2018, 3:49am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/4 "2018-05-06T03:49:33Z")

</div>

Hi Lindy

Thanks for the reply. I’ve tried the latest version of Mattermost server v4.9.

I found that in my Android Mattermost client, I can connect to the Mattermost server using http but didn’t work with https ssl.

Can you advise?

---

<div class="post-metadata">

**Author:** ![kongyc870320](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kongyc870320](https://forum.mattermost.com/u/kongyc870320)\
**Post date:** [May 7, 2018, 11:05am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/5 "2018-05-07T11:05:27Z")

</div>

Hi,

In my testing environment, I have mattermost v4.9 installed, configured SSL using this method (NGINX not installed):

[https://docs.mattermost.com/install/install-rhel-71.html#configuring-tls-on-mattermost-server](https://docs.mattermost.com/install/install-rhel-71.html#configuring-tls-on-mattermost-server)

**Configure TLS on the Mattermost Server** :

1. In the **System Console** \> **General** \> **Configuration**.

> 1. Change the **Listen Address** setting to `:443`.
> 2. Change the **Connection Security** setting to `TLS`.
> 3. Change the **Forward port 80 to 443** setting to `true`.

1. Activate the `CAP_NET_BIND_SERVICE` capability to allow Mattermost to bind to low ports.

> 1. Open a terminal window and change to the Mattermost `bin` directory.
> 
> > `cd /opt/mattermost/bin`

> 1. Run the following command:
> 
> > `sudo setcap cap_net_bind_service=+ep ./platform`

1. Install the security certificate. You can use [Let’s Encrypt](https://letsencrypt.org/) to automatically install and setup the certificate, or you can specify your own certificate.

> **To use a Let’s Encrypt certificate** :

> > The certificate is retrieved the first time that a client tries to connect to the Mattermost server. Certificates are retrieved for any hostname a client tries to reach the server at.

> > 1. Change the **Use Let’s Encrypt** setting to `true`.
> > 2. Restart the Mattermost server for these changes to take effect.

Now the SSL is working, I can login to mattermost using Android app, but I’ve no idea on how to renew the SSL now. Hereby attached the config.json of my mattermost setup.

Please advise, thank you.

Best regards,

kong

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 7, 2018, 12:38pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/6 "2018-05-07T12:38:49Z")

</div>

@kongyc870320 @Urge4Vert Are you using the latest Mattermost Android version (v1.8)? We have heard other reports of Mattermost not working on Android on 1.8 in the past few days, so I just wanted to confirm.

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 7, 2018, 4:14pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/7 "2018-05-07T16:14:58Z")

</div>

I’m using the Android app version 1.8 and can confirm it is NOT working

---

<div class="post-metadata">

**Author:** ![kongyc870320](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kongyc870320](https://forum.mattermost.com/u/kongyc870320)\
**Post date:** [May 7, 2018, 4:19pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/8 "2018-05-07T16:19:19Z")

</div>

Hi,

I tried android Mattermost app 1.8 and Mattermost classic, all didn’t work.

Throughout my finding , I believe the ssl cert and key info are stored under /opt/mattermost/config/letsencrypt.cache/. By removing the file, it will regenerate or renew the certificate.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 7, 2018, 7:06pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/9 "2018-05-07T19:06:17Z")

</div>

I’ll let our engineers know, I just have one more question - are you able to access the Mattermost server from the mobile web browser? @kongyc870320 @Urge4Vert

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 7, 2018, 7:32pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/10 "2018-05-07T19:32:50Z")

</div>

I can confirm that on the same mobile device I’m able to connect to the server using Chrome, and log in successfully. The app just keeps say ‘cannot connect’

Also, I see on the app reviews in Google Play store it seems many people are having this same issue.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 7, 2018, 7:52pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/11 "2018-05-07T19:52:28Z")

</div>

@kongyc870320 @Urge4Vert Can you also help verify the ssl chain using [ssllabs.com](http://ssllabs.com)?

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 7, 2018, 10:28pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/12 "2018-05-07T22:28:56Z")

</div>

I did not see any issues in the report, and all Android versions reported back successfully

---

<div class="post-metadata">

**Author:** ![kongyc870320](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kongyc870320](https://forum.mattermost.com/u/kongyc870320)\
**Post date:** [May 8, 2018, 12:01am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/13 "2018-05-08T00:01:23Z")

</div>

Hi

Browser in android phone is able to connect to mattermost, just the android app is unable to connect.

---

<div class="post-metadata">

**Author:** ![saturnino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/saturnino/32/1353_2.png) [@saturnino](https://forum.mattermost.com/u/saturnino)\
**Post date:** [May 8, 2018, 9:54am UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/14 "2018-05-08T09:54:00Z")

</div>

Hi @kongyc870320  
Could you see [this post](https://forum.mattermost.com/t/mattermost-android-app-1-8-0-not-starting-up/4900/6) and try if the solution there will work for you?

I just noticed that in your original post, you’ve stated your server URL as [https://chat.3lc.my:8065/](https://chat.3lc.my:8065/). However, when I tried that link, it’s not reachable. I’m able to connect at [https://chat.3lc.my/](https://chat.3lc.my/) that is without port 8065. Could you confirm if you’re able to connect on Android to [https://chat.3lc.my/](https://chat.3lc.my/)?

UPDATE: Add link to post mentioned - [Mattermost Android App (1.8.0) not starting up](https://forum.mattermost.com/t/mattermost-android-app-1-8-0-not-starting-up/4900/6)

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 12, 2018, 8:39pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/15 "2018-05-12T20:39:03Z")

</div>

There’s still no update on this? Are you reading your Google reviews about the app? There are three reviews in the last 15 days saying its not working after updating the server.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 14, 2018, 2:46pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/16 "2018-05-14T14:46:19Z")

</div>

Hi @Urge4Vert,

Thank you for the question - I asked our engineers last week to take a look and Saturnino suggested above to check the server URL ^.

@kongyc870320 have you tried Saturnino’s suggestion above and have you seen any changes? If not, I’ll have our engineers take a further look on this.

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 14, 2018, 4:19pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/17 "2018-05-14T16:19:00Z")

</div>

@amy.blais thanks for the update. I’m using nginx as a front end as suggested in the docs, so there is no port issue.  
The suggestion by @saturnino does not apply to my situation.

---

<div class="post-metadata">

**Author:** ![elias](https://avatars.discourse-cdn.com/v4/letter/e/41988e/32.png) [@elias](https://forum.mattermost.com/u/elias)\
**Post date:** [May 15, 2018, 12:46pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/18 "2018-05-15T12:46:34Z")

</div>

my two cents:

Have you checked and confirmed that the ssl cert has a complete chain? you can use the tools from [http://ssllabs.com](http://ssllabs.com) to test it.

The Android app is very picky when it comes to that, so an incomplete SSL chain would cause the app not to connect.

---

<div class="post-metadata">

**Author:** ![Urge4Vert](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Urge4Vert](https://forum.mattermost.com/u/Urge4Vert)\
**Post date:** [May 15, 2018, 4:59pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/19 "2018-05-15T16:59:54Z")

</div>

It was the certificate chain issue. This took awhile to troubleshoot because everything had been working before, including the Android app until the most recent upgrade. Also, running it behind nginx as recommended and the cert chain is a bit different on nginx

Once I merged the chain and the cert the app is working again.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 16, 2018, 5:56pm UTC](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894/20 "2018-05-16T17:56:03Z")

</div>

Glad to hear that!

@kongyc870320 Has this been resolved for you or have you still been experiencing connection issues? Let me know if you need any assistance!

[Next page](https://forum.mattermost.com/t/unable-to-connect-to-mattermost-server-using-android-phone/4894.md?page=2)
