Old School Ops

Hardening a Public Server

What to change before a server is reachable from the internet, and what not to bother with.

Every game · updated 2026-11-06
On this page

A release is configured for a server on your own machine. Four things change when it becomes reachable from the internet.

Change These

WhatWhy
An unclaimed bootstrap passwordUntil somebody is Super Administrator, whoever uses it owns the server.
settings.ini file permissionsIt holds database credentials in plain text. chmod 600.
The database passwordThe default is in a file thousands of people have downloaded.
The bind addressBind the web server to the internet; keep the database on localhost.

A release ships with no accounts at all. While nobody holds Super Administrator, the website prints a one-time SUPER_PASSWORD in its console. Sign in with your own email and that password before the site is reachable from the internet, and check that the line in settings.ini is blank afterwards. GM accounts has the details.

Accounts

Nothing reaches a character without proving the account it belongs to, through the launcher, the website or the game's own login. A game server that cannot open its accounts database refuses to start. No setting turns this off.

Do Not Expose the Database

MySQL on 0.0.0.0 is the single most common way one of these servers is taken over. Keep it on 127.0.0.1 and let the game server reach it locally. Nothing else needs to.

Ports

PortOpen to
Game portThe internet. Players connect here.
Web serverThe internet, if you run one.
DatabaseNothing. Localhost only.
Loopback stats portNothing. Localhost only.

What Not to Bother With

Hiding the server version. It tells an attacker nothing they cannot get by connecting, and it stops your players telling you what they are running when something breaks.

Blocking the client's own traffic patterns. The protocol is public. Effort spent here is effort not spent on the two rows above.

Updates

Watch the game's page or subscribe to its release feed at /changelog/<family>/<game>/feed.xml. Security fixes are noted in the changelog for the version that carries them.

Something here wrong?

Out of date, incomplete, or assuming something it should not. Documentation errors are bugs, and this one arrives tagged and pointed at this page.

Top xp sources

How xp works
Loading…

Open the full search page