# Connect CODE Server To TWO Different NEXTCloud Instances & Mattermost Server

**URL:** <https://forum.collaboraonline.com/t/connect-code-server-to-two-different-nextcloud-instances-mattermost-server/2077>\
**Category:** Installation & Configuration\
**Created:** [September 30, 2023, 9:45pm UTC](https://forum.collaboraonline.com/t/connect-code-server-to-two-different-nextcloud-instances-mattermost-server/2077 "2023-09-30T21:45:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalthreshold](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@digitalthreshold](https://forum.collaboraonline.com/u/digitalthreshold)\
**Post date:** [September 30, 2023, 9:45pm UTC](https://forum.collaboraonline.com/t/connect-code-server-to-two-different-nextcloud-instances-mattermost-server/2077/1 "2023-09-30T21:45:45Z")

</div>

Hi:

I have successfully installed a Collabora CODE Server (running on Ubuntu 22.04) using the RPM/Deb option, not Docker. During the installation, I specified a default Nextcloud instance. The connection between those two servers is working just fine. The problem is that I have TWO Nextcloud servers and TWO Mattermost servers which I want to connect to this CODE Server for document editing. I have entered the relevant URL into the appropriate connector apps (on the other Nextcloud instance and the two Mattermost servers) but they are simply unable to connect. The Mattermost instance returns “Well, this is embarrassing, we cannot connect to your document.” while the counter is stuck at 0%. The other (almost identical) Nextcloud instance sets up the CODE Server app appropriately but when it is time to open a document, the connection fails. However, the first instance specified during the installation works just fine.

Please assist. Thank you.

---

<div class="post-metadata">

**Author:** ![mmeeks](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/mmeeks/32/371_2.png) [@mmeeks](https://forum.collaboraonline.com/u/mmeeks)\
**Post date:** [October 3, 2023, 8:56am UTC](https://forum.collaboraonline.com/t/connect-code-server-to-two-different-nextcloud-instances-mattermost-server/2077/2 "2023-10-03T08:56:49Z")

</div>

That’s interesting. So a single COOL cluster should be able to drive multiple Nextcloud and Mattermost instances. Have you configured WOPI alias\_groups for your servers?
