DocsHostingMaster servers

Get it known and check it

Get it known

A master started with --peer and default masters, as above, reads their listings, so it lists every public server. The default masters don't name other masters, so a master of your own reaches players and hosts when they add it:

  • Players add it under Settings → Online services → Master servers: http://your-address:49175 on a line of its own. Their browser reads it with the other masters on their list. See Join a game.
  • Dedicated server hosts add it to [master] peers, or to RECLAIMER_DEDICATED_MASTER_PEERS in Docker. Their servers then report to it and register with it, and their master swaps listings with it.
dedicated.toml
[master]
peers = ["http://your-address:49175"]

Community masters that name each other with --peer and --origin pass each other on to everyone who reads them, so players who added one learn the rest.

If you also host dedicated servers, the master in that setup can do all of this, so you don't need a second one. It already swaps with the default masters, and names itself at the servers' public_address on its own port. Set origin when it's reached at another address, and add other community masters to peers.

dedicated.toml
[master]
origin = "http://your-address:49175"
peers = ["http://148.251.153.44:44340", "http://23.159.176.140:44340"]

Check that it works

From another machine, ideally on another network, since many home routers can't reach their own public address from inside:

Shell or PowerShell
curl http://your-address:49175/v3/discovery

It answers with JSON: version, which is 3, listings, the listings it holds, masters, the masters it knows, seen, your address as it saw it, rendezvous_port, its UDP port, witnessed, the players it counted on each server, and level, which is 1 on a master that lists only servers that answered it. A couple of minutes after it starts, it should hold the same listings as the default masters, such as http://148.251.153.44:44340/v3/discovery. In Windows PowerShell 5, type curl.exe: plain curl is another command there.

On a PC with the game, this prints every server a master lists that answers, with its ping, its players and the games and mods its players need:

Shell
project-reclaimer --list-servers http://your-address:49175