# MacOS desktop app server url will be changed

**URL:** <https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665>\
**Category:** Troubleshooting\
**Created:** [April 13, 2023, 7:52am UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665 "2023-04-13T07:52:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YiruChen](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@YiruChen](https://forum.mattermost.com/u/YiruChen)\
**Post date:** [April 13, 2023, 7:52am UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665/1 "2023-04-13T07:52:36Z")

</div>

Hi all,

I’m using mac os desktop app v5.3.1 with self-host mattermost v7.9.1

When I set a new Server URL to `http://{my_host}:{my_port}` and I found that I cannot login, and check the url again in Edit Server dialog, it has been changed to `http://{my_host}`.  
Is this a bug? Or what should I do to fix this?

update: same situation on win10 (app v5.3.1)

Thanks.

---

<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:** [April 13, 2023, 12:33pm UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665/2 "2023-04-13T12:33:24Z")

</div>

Would you be open to reporting this at [Issues · mattermost/desktop · GitHub](https://github.com/mattermost/desktop/issues) and our desktop app team can investigate?

---

<div class="post-metadata">

**Author:** ![YiruChen](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@YiruChen](https://forum.mattermost.com/u/YiruChen)\
**Post date:** [April 14, 2023, 1:21am UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665/3 "2023-04-14T01:21:48Z")

</div>

Sure.

> <https://github.com/mattermost/desktop/issues/2679>
>
> \### Before you file a bug report
> 
> \- \[X\] I have checked the \[issue tracker\](https…://github.com/mattermost/desktop/issues) and have not found an issue that matches the one I'm filing.
> \- \[X\] This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
> \- \[X\] This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
> \- \[X\] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, \[issue reports go to the Mattermost Server repository\](https://github.com/mattermost/mattermost-server/issues).
> \- \[X\] This issue reproduces on the most recent \[stable version\](https://github.com/mattermost/desktop/releases/latest), or the most recent \[prerelease version\](https://github.com/mattermost/desktop/releases) of the Mattermost Desktop App.
> \- \[X\] I have read the \[contribution guidelines\](https://github.com/mattermost/desktop/blob/master/CONTRIBUTING.md).
> 
> \### Mattermost Desktop Version
> 
> 5.3.1
> 
> \### Operating System
> 
> win 10 x64, macOS Ventura 13.3 (Intel Core i5)
> 
> \### Mattermost Server Version
> 
> 7.9.1
> 
> \### Steps to reproduce
> 
> When I set a new Server URL to http://{my\_host}:{my\_port} and I found that I cannot login, and check the url again in Edit Server dialog, it has been changed to http://{my\_host}.
> 
> \### Expected behavior
> 
> Successful login
> 
> \### Observed behavior
> 
> Cannot login
> 
> \### Log Output
> 
> \`\`\`shell
> \[2023-04-14 09:14:14.217\] \[info\] preloading with /Applications/Mattermost.app/Contents/Resources/app.asar/desktopAPI.js
> \[2023-04-14 09:14:22.059\] \[info\] Saving config data to file...
> \[2023-04-14 09:14:22.243\] \[info\] Saving config data to file...
> \[2023-04-14 09:14:22.314\] \[info\] \[test\_\_\_TAB\_MESSAG...\] failed loading http://{my\_host}:{my\_port}/: Error: ERR\_FAILED (-2) loading 'http://{my\_host}:{my\_port}/', retrying in 5 seconds
> 
> p.s. I replace the host and port with symbol {my\_host}:{my\_port}
> \`\`\`
> 
> 
> \### Additional Information
> 
> \_No response\_

---

<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:** [April 14, 2023, 3:10am UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665/4 "2023-04-14T03:10:33Z")

</div>

Sorry @YiruChen , I was busy the last few days and overlooked your question here.

I saw it in GitHub now and answered there, but I’m not sure if this is really a bug - please verify your `SiteURL` setting as mentioned in the GitHub issue to start with.

---

<div class="post-metadata">

**Author:** ![YiruChen](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@YiruChen](https://forum.mattermost.com/u/YiruChen)\
**Post date:** [April 14, 2023, 5:32am UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665/5 "2023-04-14T05:32:55Z")

</div>

After I modify the variable MM\_SERVICESETTINGS\_SITEURL in .env file, it works, thanks.

---

<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:** [April 14, 2023, 5:48am UTC](https://forum.mattermost.com/t/macos-desktop-app-server-url-will-be-changed/15665/6 "2023-04-14T05:48:15Z")

</div>

Awesome, thanks for confirming that this was the reason for your problem. Marking this topic as resolved now.
