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
+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}"