# I can't connect my server via apps but can on web browser

**URL:** <https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928>\
**Category:** Troubleshooting\
**Created:** [January 26, 2023, 10:02pm UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928 "2023-01-26T22:02:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/yohan/32/6369_2.png) [@Yohan](https://forum.mattermost.com/u/Yohan)\
**Post date:** [January 26, 2023, 10:02pm UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/1 "2023-01-26T22:02:23Z")

</div>

**Summary**  
I can’t connect my server via apps but can on web browser

**Steps to reproduce**  
Open Mac app (5.2.2), type my server address with port and server name

**Expected behavior**  
I should be able to connect my server. (It works on web browser)

**Observed behavior**  
Nothing happens (no error message)

No SSL setup so I connect with HTTP on web browser

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [January 27, 2023, 5:47am UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/2 "2023-01-27T05:47:53Z")

</div>

Hi Yohan and welcome to the Mattermost forums!

Has this always worked and is this a new development or is this the first time you tried? Any updates to either the server or the desktop app related to the malfunction?

Connecting to the server using http only should work, but there has been a change with 5.1 or 5.2 (always forget the right version) where the desktop app redirects to the server configured `SiteUrl` after login. Can you verify that the variable `SiteUrl` in your server is set to the URL you’re connecting to from the desktop app?

---

<div class="post-metadata">

**Author:** ![Yohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/yohan/32/6369_2.png) [@Yohan](https://forum.mattermost.com/u/Yohan)\
**Post date:** [January 27, 2023, 6:44am UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/4 "2023-01-27T06:44:29Z")

</div>

![2023-01-27-15-41-09@2x](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/4/4322c46895748275f59767c37a45e2976a77fca9.png)  
I invite someone and the one get this error

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [January 27, 2023, 6:58am UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/5 "2023-01-27T06:58:33Z")

</div>

Hey,

your siteurl says `https://team.yohan-server.synology.me` and your server obviously does not support the `https` protocol, so when you enter `http://team.yohan-server.synology.me:8401` in the desktop app, it will redirect you to the value it receives from the `SiteUrl` and this URl is unreachable.

I assume you’re running the docker deployment on your Synology NAS, right? If so, there should be a configuration file (maybe `.env` in the docker directory?) where you can modify the environment variable `MM_SERVICESETTINGS_SITEURL` to point to `http://team.yohan-server.synology.me:8401` and then it should work.

With regrads to the iOS app: I’m pretty sure it does not support `http` at all, this might be a restriction from the Appstore, so I think overall it would be better if you woulud also set up a certificate for your Mattermost server on the synology. You can either do that directly in the Mattermost application (in the system console, you can set up let’s encrypt) or you can use a reverse proxy container (nginx, f.ex.) in front of it and do the SSL offloading there.

The invite URLs are also generated based on the `SiteUrl` configuration variable, so this is definitely related.

---

<div class="post-metadata">

**Author:** ![Yohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/yohan/32/6369_2.png) [@Yohan](https://forum.mattermost.com/u/Yohan)\
**Post date:** [January 27, 2023, 7:36am UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/6 "2023-01-27T07:36:54Z")

</div>

Right, docker deployment on my Synology NAS. I think your solution(edit the configure file) would solve the issue.  
Overall I agree with you it would be better just set up a certification for my server  
Is there any guide link how to get Let’s Encrypt in the Mattermost application? I’m unable to click Use Lets Encrypt as ‘ture’ on system console

 ![2023-01-27-16-33-05](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/1/1051910fff5afa4ff17a9241b1c7490b7f28e543.png)  
Thanks for your help! 👍

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [January 27, 2023, 10:45am UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/7 "2023-01-27T10:45:15Z")

</div>

Did you also enable the “Forward port 80 to 443” setting? It is required for this feature.

---

<div class="post-metadata">

**Author:** ![Yohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/yohan/32/6369_2.png) [@Yohan](https://forum.mattermost.com/u/Yohan)\
**Post date:** [January 27, 2023, 10:07pm UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/8 "2023-01-27T22:07:08Z")

</div>

I’m unable to click true for “Forward port 80 to 443” setting

 ![2023-01-28-06-55-51](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/f/f5339e0448c0b8b5e212d5d59230878bcaab6374.png)

After I update this as your guide  
`MM_SERVICESETTINGS_SITEURL` to point to `http://team.yohan-server.synology.me:8401`  
I can connect my Mattermost with my Mac app!! 😆 Awesome support! Thank you so much agriesser!

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [January 30, 2023, 3:58am UTC](https://forum.mattermost.com/t/i-cant-connect-my-server-via-apps-but-can-on-web-browser/14928/9 "2023-01-30T03:58:59Z")

</div>

You’re welcome, glad to hear you’re up and running now!
