# Setup gnuhealth federation server

**URL:** <https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766>\
**Category:** System Administrator\
**Created:** [December 20, 2022, 2:31pm UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766 "2022-12-20T14:31:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarannom](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/4491bb/32.png) [@Tarannom](https://discuss.tryton.org/u/Tarannom)\
**Post date:** [December 20, 2022, 2:31pm UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/1 "2022-12-20T14:31:26Z")

</div>

Hello,  
I am new to tryton and gnuhealth system. I want to setup gnuhealth with tryton on three PC which has ubuntu 22.04 version and use same wifi connection. I install gnuhealth system on three PC with tryton and postgresql. I consider one as a main server and another two as a local server. Now i want to insert patient data or other data on a local server and want to the data is available on main server.I want it as a distributed system.Is it possible?if possible than please help me by giving your suggestion.  
Thanks in advance.

 ![CamScanner 12-20-2022 20.28_1](https://discuss-cdn.tryton.org/uploads/default/original/2X/f/f26985ab68edc020a8e29cb2160837b9b6ca0044.jpeg)

---

<div class="post-metadata">

**Author:** ![yangoon](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/67e7ee/32.png) [@yangoon](https://discuss.tryton.org/u/yangoon)\
**Post date:** [December 20, 2022, 3:00pm UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/2 "2022-12-20T15:00:54Z")

</div>

Hello Tarannom,

you could probably receive more specific advice on GNU Health mailing lists: [GNU Health - Mailing Lists [Savannah]](https://savannah.gnu.org/mail/?group=health) .

To federate data between several HMIS instances you may want to have a look at the federation server: [GNU Health/Federation Technical Guide - Wikibooks, open books for an open world](https://en.wikibooks.org/wiki/GNU_Health/Federation_Technical_Guide)

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [December 21, 2022, 5:00pm UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/3 "2022-12-21T17:00:31Z")

</div>

To me for only three clients federation sounds a bit overdone. I’s go with three clients and a single server.  
Anyhow, I never user GNU Health, so maybe it has some specialties which recommend federation even in small setup?

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [December 21, 2022, 6:45pm UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/4 "2022-12-21T18:45:26Z")

</div>

> [@Tarannom](#):
>
> I want to setup gnuhealth with tryton on three PC which has ubuntu 22.04 version and use same wifi connection. I install gnuhealth system on three PC with tryton and postgresql. I consider one as a main server and another two as a local server.

I think you misunderstand how Tryton works. Tryton uses the [Client-Server](https://en.wikipedia.org/wiki/Client%E2%80%93server_model) model. So you setup a server and install Tryon-server on it. On the PC’s you install only the Tryton-client.

In short: As you said you have one as ‘main-server’. The other PC’s can connect directly to the ‘main-server’. Use in the login dialog as ‘hostname’ the ip-address or the name from your ‘main-server’.

---

<div class="post-metadata">

**Author:** ![SISalp](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sisalp/32/200_2.png) [@SISalp](https://discuss.tryton.org/u/SISalp)\
**Post date:** [December 22, 2022, 2:53pm UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/5 "2022-12-22T14:53:45Z")

</div>

Is it a kind of experiment ? any real requirement behind such a synchronization need ?

---

<div class="post-metadata">

**Author:** ![Tarannom](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/4491bb/32.png) [@Tarannom](https://discuss.tryton.org/u/Tarannom)\
**Post date:** [December 23, 2022, 10:21am UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/6 "2022-12-23T10:21:29Z")

</div>

Thanks for suggestion. But i don’t want to directly connect to the main server from another device. I want to insert/delete data in one database server and that change of information will be updated to main database server.

---

<div class="post-metadata">

**Author:** ![Tarannom](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/4491bb/32.png) [@Tarannom](https://discuss.tryton.org/u/Tarannom)\
**Post date:** [December 23, 2022, 10:23am UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/7 "2022-12-23T10:23:45Z")

</div>

Yes. At this moment I want to develop such a system so that it could be use for large companies in future.

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [December 27, 2022, 10:36am UTC](https://discuss.tryton.org/t/setup-gnuhealth-federation-server/5766/8 "2022-12-27T10:36:06Z")

</div>

Please share your insights, I’d be eager to learn about your experiences.
