From ac037e80613c9bbf90f1b402bd9152989bebc85d Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Thu, 20 Aug 2026 20:18:46 +0200 Subject: [PATCH] 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). --- server/README.md | 4 ++++ server/deploy.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/README.md b/server/README.md index 596622e..e5fc572 100644 --- a/server/README.md +++ b/server/README.md @@ -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 diff --git a/server/deploy.sh b/server/deploy.sh index 7fb2cb3..20ce4a0 100755 --- a/server/deploy.sh +++ b/server/deploy.sh @@ -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}"