Bind server to all interfaces instead of public hostname

server-ip defaults to empty (0.0.0.0). Binding to the resolved public IP of
reaperofveriod.nl crashed the server with 'Cannot assign requested address',
since that IP isn't assigned to a local interface (NAT behind the edge router).
This commit is contained in:
ReaperOfVeriod
2026-08-20 20:18:46 +02:00
parent 772961f9ec
commit ac037e8061
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -48,6 +48,10 @@ Stop the server cleanly with the console command `stop` (Ctrl-c also works).
- `server.properties` sets `online-mode=true` (Mojang authentication). Set it to
`false` in `~/reaper-sky-server/server.properties` to allow unauthenticated
clients, then restart.
- `server-ip` is left **empty** on purpose: the server binds all interfaces
(`0.0.0.0`) and is reached through the edge router's port-forward. Do **not**
put the public hostname/IP here — it isn't assigned to a local interface and
the server will crash with `Cannot assign requested address`.
- `difficulty=hard`, `spawn-protection=0`, `view-distance=10` are set for the
airship-focused, land-claim-friendly experience.
- The 19 client-only mods (Iris/shaders, Sodium, Minimap, Jade, JEI, etc.) are
+1 -1
View File
@@ -25,7 +25,7 @@ INSTALLER_URL="https://maven.neoforged.net/releases/net/neoforged/neoforge/${NEO
# --- config (override via env if you want) ------------------------------------
SERVER_DIR="${DIR:-$HOME/reaper-sky-server}"
MEMORY="${MEMORY:-8G}"
SERVER_IP="${SERVER_IP:-reaperofveriod.nl}"
SERVER_IP="${SERVER_IP:-}" # empty = bind all interfaces; reach server via edge port-forward
DEFAULT_MOTD="Reaper's Sky"
MOTD="${MOTD:-$DEFAULT_MOTD}"
MAX_PLAYERS="${MAX_PLAYERS:-10}"