Skip to content

Working with server and clients

A server holds the shared database. Clients work with a local copy (mirror) and send their changes to the server when they sync. The connection between client and server is encrypted.

The server is the shared basis for the work. A client does not edit the server’s database file directly. Its local copy makes it possible to work even when the server is temporarily unreachable.

Fig. 9 shows different participants working on a shared collection. The server determines which accounts are admitted and which rights they have. With Free, one client can be registered; with Plus, ten. The first administrator account does not count as a client.

Fig. 9: Server and clients

Fig. 9: Example of a server installation with four client accounts (two people, one AI, one automation), for example in Plus or Max. All access is subject to the rights on the server.

To get started, a server in your local network is enough. Keep the computer with the database reachable and provide enough space for the database and backups. Note down the server address you want to give to the users. Client and server need matching software versions that work with each other.

NhyFlow is intended for local networks or secured connections such as VPN. A NhyFlow server directly reachable from the internet is not recommended. An encrypted connection between client and server does not automatically protect the stored files on the computers involved.

“Server” tab: choose a folder, the first time enter server name, administrator and password under “Set up a new server”, then “Start server”. You can leave the “Listen address:port” field empty – the server is then reachable on the whole network under the default port 49494.

The “Server” page then shows the address at which clients find the server (“Reachable on the network at …”) and the server’s fingerprint – you give both to the clients. If it says “Reachable from this computer only”, the server only listens on 127.0.0.1; other computers are then refused. In this case, stop the server and restart it with an empty field or 0.0.0.0:49494.

Use a separate database folder and keep the administrator’s credentials safe. The administrator manages the shared database, not only their own texts. Setting up a server is different from setting up the client accounts later.

At first, the server is managed only on the server computer itself: accounts, shares, backup and server settings. Everyone can edit texts as usual. If you also want to manage the server from a client – for example because it runs without a screen – turn on the checkbox “Administrators may manage the server over the network” under “Remote administration” on the “Server” page. Without a user interface, you do this with nhyflow_headless server remote-admin FOLDER on (server stopped); off turns it off again.

“Server” page with remote administration, TLS details and users

With remote administration turned on, every administrator account can create accounts, assign rights and restore backups from any client. Remote administration cannot be turned on over the network – only on the server computer.

Before a client can connect, a matching account must be set up on the server.

  1. As administrator, open the user management.
  2. Create an account for the user and choose the appropriate account type.
  3. Assign the intended roles and shares.
  4. Pass the server address and their credentials on to the user in a suitable way.
  5. Provide them with the server’s fingerprint for comparison.

Registration can be done in the server interface, via remote administration (if turned on) or, for the headless server, on the command line. The license counts the admitted registered accounts, not only the users currently connected. This is why a user who has not been registered so far cannot simply log in even when other clients are currently offline.

“Client” tab: server address, user and password. The first time, you confirm the server’s fingerprint.

Compare the fingerprint shown with the one the server operator gave you via a trustworthy channel. Do not confirm an unknown or unexpectedly changed fingerprint without checking it.

Choose the realms you want to subscribe to for your work, and sync the content. The share on the server determines which content you are allowed to access in principle; the subscription determines which realms you keep with their content in your local copy.

  • Save saves locally. Sync sends your changes and fetches those of the others.
  • Working offline is possible at any time; the next time you connect, everything is reconciled.
  • Subscriptions: only subscribed realms come with their content into your local copy. Snapshots always come along; you do not need a subscription for them.
  • Changes (⌘⇧D / Ctrl+Shift+D) shows what has changed since your last visit; a double-click jumps there.
  • The number on the “Changes” button shows how many passages others have changed since you last looked – in all realms you are allowed to read, including ones you have not subscribed to. It appears as soon as someone has changed something on the server; above 999 it shows “999+”. When you open the Changes window, it disappears.

Changes window with the changes made by others, grouped by U-line

You sync in the morning and see the changes made by the other users. Then you edit your texts, save locally and can keep using the computer even without a connection to the server. When you have a connection again, you sync again. Only then do your locally saved changes reach the shared server.

If a colleague does not see a change you saved yet, first check whether you have synced and whether their client has already fetched the current server state. Saving and syncing do different jobs.

A client is not an automatic complete backup of the server. Depending on subscriptions and shares, its local copy contains only part of the content.

If two people have changed the same passage, nobody wins silently. The second one gets a conflict and decides: keep their own revision, take the server’s, or merge both.

In a conflict, read both revisions. The revision edited last is not necessarily the right one. During editing, for example, the server may already contain an improved NL text while you made a different correction offline at the same passage. Decide deliberately whether you adopt one of the two revisions or make a joint text from them. Check the result before the next sync.

Fig. 10: Syncing and conflicts

Fig. 10: Saving and syncing are separate steps. With competing changes to the same passage, a conflict becomes visible and you decide on the content.

During certain maintenance work, the server does not accept new data. Clients can save their work locally. Only sync again when the server has resumed normal operation. For a restore, the notes in the chapter on backups also apply, especially for changes that have not yet been transferred.