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:
+1
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user