DocsHostingMaster servers

Options and several masters

The master's options

OptionDefaultMeaning
--bind ADDRESS:PORT[::]:44340Where it listens, on that port number for both TCP and UDP. Use port 49175, the usual one: 0.0.0.0:49175 for IPv4, [::]:49175 for both IPv4 and IPv6.
--key FILEh3list.keyThe UDP side's key, made on the first start, in the folder it runs in unless the path says otherwise. Keep it: servers prove themselves against it.
--data DIRnoneWhere it keeps peers.json, the masters it learned. Without it, it forgets them when it stops.
--peer URLnoneA master it always swaps with, as http://host:port. Repeat it for each one. A master with no peer waits for others to come to it.
--origin URLhttp:// its bound addressWhere others reach it, as http://host:port, named when it writes to other masters. Set it: the default is its own loopback address when it listens on every network, which nobody else can use.
--block FILEnoneAddresses it leaves alone: it answers nothing from them and lists no server at one. See keep servers off your list.
--block-words FILEnoneRules for what servers call themselves. A server whose names match one isn't listed.
--allow-many FILEnoneAddresses that may list more than four servers, in the format of --block.
--sync URLnoneAnother master of yours, as http://host:port, kept in step with this one. Repeat it for each one. See several masters of your own.
--closedoffIt reads and sends to only the masters named with --peer and --sync, learns and names no others, and takes another master's listings only from those. Servers still report to it directly.
--unverifiedoffIt lists servers without asking each first whether it's there. Only for a master placed where it can't reach the servers its players can, such as one for a private network: players' browsers leave an unverified master on the internet out.
--trust-unwitnessedoffA server it counted no player on is listed with the count the server itself reports, instead of none. See player counts.

Several masters of your own

Masters run by one operator can be kept in step. Start each with --sync and the address of every other one:

Shell
./project-reclaimer list-master --bind 0.0.0.0:49175 --key h3list.key --data . \
  --origin http://your-address:49175 --sync http://198.51.100.7:49175

Every 2 seconds each tells the others its blocked addresses, its word rules, its --allow-many lines and the playing games it heard from. So:

  • An address blocked on one master is blocked on all of them within seconds, and a line taken out where it was written is let back in everywhere. One file on one master is enough.
  • Every master shows the same player count for a server, even when a player's game reached only one of them. Each game is counted once.
  • They swap listings, as with --peer.

Only the masters you name are believed, and only over a connection from that master's own IP address. Masters that share one outgoing address, or sit behind a proxy, look like one sender to the others.