You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,9 @@ These are the arguments you can use to customize server behavior with default va
89
89
| WORLD_MODE | 0 | Sets the world mode for the world. Can be Normal (0), Hard (1), Creative (2), Casual (4). |
90
90
| SEASON | No Default | Overrides current season by setting to any of None (0), Easter (1), Halloween (2), Christmas (3), Valentine (4), Anniversary (5), CherryBlossom (6), LunarNewYear(7).<br/>**Do not set this env var if you want real date season.** |
91
91
| GAME_ID | "" | Game ID to use for the server. Need to be at least 28 characters and alphanumeric, excluding Y,y,x,0,O. Empty or not valid means a new ID will be generated at start. |
92
-
| DATA_PATH | "/home/steam/core-keeper-data" | Save file location. |
93
92
| MAX_PLAYERS | 10 | Maximum number of players that will be allowed to connect to server. |
94
93
| SERVER_IP | No Default | Only used if port is set. Sets the address that the server will bind to. |
95
-
| SERVER_PORT | 27015 | What port to bind to. 27015 is the Steam relay port. |
94
+
| SERVER_PORT | No Default | Port used for direct connection mode. **Setting an value to this will cause the server behaviour to change!** [See Network Mode](#network-mode) |
- If `version` is not specified, the latest version will be installed.
157
156
- Mods are reinstalled whenever the container is started, so to update mods to their latest version, simply restart the container.
158
157
158
+
## Network Mode
159
+
160
+
Currently Core Keeper supports two network modes: SDR (Steam Datagram Relay) and Direct Connect.
161
+
162
+
### SDR (Steam Datagram Relay)
163
+
In this mode, the server uses [Valve's Virtual Network](https://partner.steamgames.com/doc/features/multiplayer/steamdatagramrelay) to route traffic through Steam's relay infrastructure. Instead of players connecting directly to the server's IP address, all communication goes through secure relay nodes managed by Steam. This hides the server’s real IP, protects against DDoS attacks, and improves NAT traversal.
164
+
165
+
Because of this relay system, server operators do not need to open any ports on their router or firewall—as long as outbound connections to Steam are allowed, the server can communicate with clients reliably.
166
+
167
+
### Direct Connection
168
+
In Direct Connect mode, players connect straight to the server’s public IP address without going through Steam's relay network. This can result in lower latency and more direct communication, but it requires the server to be reachable from the internet.
169
+
170
+
Server operators must open and forward the necessary ports on their router or firewall to allow incoming connections. Unlike SDR, this mode exposes the server’s IP address to clients and may be more vulnerable to connection issues or attacks.
171
+
172
+
> [!IMPORTANT]<br>
173
+
> The SERVER_PORT environment variable determines the server's network mode.<br>
174
+
> Leave it empty to use SDR (no port forwarding needed).<br>
175
+
> Setting a value switches to Direct Connect, which requires opening and forwarding ports.<br>
176
+
> Only set this if you specifically want Direct Connect.
0 commit comments