# Stuck to localhost

**URL:** <https://forum.mattermost.com/t/stuck-to-localhost/14678>\
**Category:** Troubleshooting\
**Created:** [December 22, 2022, 3:16pm UTC](https://forum.mattermost.com/t/stuck-to-localhost/14678 "2022-12-22T15:16:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nono44](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Nono44](https://forum.mattermost.com/u/Nono44)\
**Post date:** [December 22, 2022, 3:16pm UTC](https://forum.mattermost.com/t/stuck-to-localhost/14678/1 "2022-12-22T15:16:53Z")

</div>

Hello,

Since one or two month, (Mattermost desktop app update), when i’m trying to connect to [https://xxxx.com](https://xxxx.com) (docker infrastructure + traefik tgrough port 80), Mattermost allways try to connect to ([http://localhost:8065](http://localhost:8065)).

When i’m trying in browser it’s ok, Mattermost is displayed correctly.

Is someone have any idea why ?

Thanks in advance,  
Arnaud

---

<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:** [December 31, 2022, 4:01pm UTC](https://forum.mattermost.com/t/stuck-to-localhost/14678/2 "2022-12-31T16:01:00Z")

</div>

Hi Nono44 and welcome to the Mattermost forums!

This behaviour has been introduced in a recent desktop app update (I think it was 5.1) and the desktop app now always tries to connect to the configured `SiteURL`. Not sure what deployment method you’re using, but since you said you’re using docker, you’re probably using the docker compose method with the `.env` files? If so, you will find the following two relevant configuration options in it:

```auto
# Domain of service
DOMAIN=yourdomain
MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}

```

If you have your own setup, make sure to set the environment variable `MM_SERVICESETTINGS_SITEURL` to the URL your server runs on (including the protocol and potential subpaths).

---

<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 23, 2023, 5:17am UTC](https://forum.mattermost.com/t/stuck-to-localhost/14678/3 "2023-01-23T05:17:38Z")

</div>

Hi @Nono44 ,

just trying to follow up here - were you able to solve your issue?
