Hosting a community server
Every step from downloading the server files to a live server on The Last Kingdom's server list. The same guide is in the server zip (HOSTING.txt). Downloading the files and registering a server need a staff account.
What you need
- A Windows 10 / 11 or Windows Server PC (64-bit) that can stay on: 16 GB RAM or more, a 4-core CPU or better, about 15 GB free disk, a wired internet connection.
- Admin rights on that PC, and access to your router's settings page.
- A staff account on this website (you are signed in with it now).
1. Register the server here
- Find your public address: open api.ipify.org on the host PC (or use a domain name that points to it).
- On the website, sign in with your staff account, open Community servers and click Register a server. Enter a name, that address and the UDP port (7777 unless something else uses it). Tick Player Killer only for a PK server.
- Click Register. The server key appears once - copy it into a text file now. Lost it? Open the server in the list and use New key (the old key stops working).
2. Download the server files
- In Community servers click Download server files (the link works for 2 hours) and save the zip on the host PC.
- Unzip it to a short path, e.g.
C:\TLKServer(right-click > Extract All). Inside areACRemakeServer.exe,StartCommunityServer.bat,Game.ini.exampleandHOSTING.txt.
3. Install the database (MariaDB)
- Download MariaDB 10.6 or newer (the Windows MSI) from mariadb.org/download and run it.
- In the installer: set a root password (keep it safe), leave "Install as service" ticked, port 3306. Do not tick "Enable access from remote machines".
- Open MySQL Client (MariaDB) from the Start menu, sign in with the root password, and make a user for the server (pick your own password):
CREATE USER 'tlk'@'localhost' IDENTIFIED BY 'your-db-password'; GRANT ALL PRIVILEGES ON *.* TO 'tlk'@'localhost'; FLUSH PRIVILEGES;
The server makes its own databases (tlk_auth,tlk_shard) on the first start.
4. Settings
- Make the folders
C:\TLKServer\ACRemake\Saved\Config\WindowsServerif they are not there. - Copy
Game.ini.exampleinto that folder and rename itGame.ini. - Open it in Notepad: put your server key after
ServerKey=, the database user afterDbUser=(tlk) and its password afterDbPassword=. Save. - Open
StartCommunityServer.batin Notepad and setPORT=to the port you registered. Save.
5. Open the port
- Give the PC a fixed local address: in the router, reserve its current address (DHCP reservation). See it with
ipconfig(IPv4 Address, e.g. 192.168.1.50). - Router port forward: forward UDP <your port> to that local address (often under NAT / Port Forwarding / Virtual Server).
- Windows Firewall: open PowerShell as administrator and run (change 7777 to your port):
New-NetFirewallRule -DisplayName "The Last Kingdom server" -Direction Inbound -Protocol UDP -LocalPort 7777 -Action Allow
6. Start it and check it is live
- Double-click
StartCommunityServer.bat. A window opens; the first start takes a few minutes (it builds the databases and loads the world). It restarts the server by itself if it ever stops. - Within a minute of it being up, it shows online in the Community servers list and on the game's server list.
- Test it: start the game on another PC (best from outside your network, e.g. a friend), sign in, pick your server and enter. A join from inside your own network can fail on some routers even when it works from outside.
- Its log:
C:\TLKServer\ACRemake\Saved\Logs\ACRemakeServer.log.
7. Keep it running
- Windows power settings: sleep Never, and set active hours so updates do not restart it while people play.
- Start with Windows: Task Scheduler > Create Task > trigger "At startup", action =
StartCommunityServer.bat, "Run whether user is logged on or not". - Backups: the characters live in MariaDB. Back up daily, e.g.
mysqldump -u tlk -p --databases tlk_auth tlk_shard > backup.sql, and keep a copy on another PC.
8. Updates
Players always have the newest game version, and a server on an older one cannot be joined. After each release: download the new server files from Community servers, close the server window, unzip the new files over the old folder (your Game.ini and databases stay), and start it again.
Troubleshooting
- Stays offline on the website: the key in
Game.iniis wrong or was replaced (New key), or the PC cannot reach thelastkingdommod.com. The log says which. - Online, but nobody can join: the UDP port is not forwarded to the right PC, the firewall rule is missing, the port in the .bat differs from the one registered, or your provider blocks hosting (some mobile / CGNAT connections cannot host).
- A version message on join: the server is older than the game - update it (step 8).
- Database errors in the log: MariaDB is not running (Services > MariaDB), or the user / password in
Game.iniis wrong. - Still stuck? Post the last 50 lines of the log in the staff channel on Discord - never your key or passwords.
Your server uses The Last Kingdom accounts: no player passwords pass through it. Staff can hide a server or revoke its key at any time.