Bookmark Hostď
Configuring the Bookmark Host property along with a Login Token enables the bookmark button, allowing players to find your server even after an IP or port change.
By default the game supports Steamâs built-in Favorites and History server lists. These lists remember your server by the combination of IPv4 address and port, so if your address or port change the link is broken. Steam mitigates this if you have a GSLT assigned by automatically updating the saved address, but this doesnât happen in realtime. These lists also arenât compatible with the newer Fake IP feature.
Considering the trend toward Fake IP, a replacement was necessary, not to mention a popular request from server hosts. Thankfully, with GSLTs in widespread use now and providing a stable persistent ID, the client can save custom per-server bookmark data. The intention is to make bookmarks a better alternative to the legacy favorites/history lists, including proper support for IPv6 at some point. At the time of writing (2024-05-24) the client doesnât save history using the bookmark host property yet, but it should be added once more hosts opt-in.
To enable bookmarking, set BookmarkHost
in your serverâs Config.json
file to one of these formats:
A DNS entry with an
A
record pointing to your serverâs public IP. For example, if you own the âexample.comâ domain you could add an A record âmyunturnedserverâ pointing at your game server IP and setBookmarkHost
to âmyunturnedserver.example.comâ. In this case the client will save your serverâs current port number, so the IP address can change but the port canât. If your server doesnât have a static public IP you could use dynamic DNS to update the DNS record periodically. Note that this option is inapplicable for servers using Fake IP because both the IP and port are randomly assigned after each restart.The URL of a custom web API to return the address, and optionally the port. Clients perform a GET request if
BookmarkHost
begins with âhttp://â or âhttps://â. The response should be plain text. Examples of valid responses include:127.0.0.1
127.0.0.1:27015
myunturnedserver.example.com
myunturnedserver.example.com:27015
The hosts of Pandahut have generously shared an example implementation consisting of a server plugin which updates the latest server address on a custom backend, and a web request handler to serve the latest address to clients. Note that we donât necessarily recommend using this program as-is, itâs just an example: BookmarkHostPlugin by PandahutMushy