Don t starve together dedicated server là gì năm 2024

SetLobbyGameServer 0 means your server is up. Just as what n00bas posted the link for, see if your server is up and named, otherwise you have steps to do more than just portforwarding. Note that if port-forwarding doesn't work, then you need to go into firewall to advance, portforward and allow DST server go outbound out of firewall.

So for now, your server cannot be seen in the listings. By LAN your server is up and only you and your household can join. No one can join you through console connecting through ip until you port-forward and/or allow firewall.

Go back to Documents > Klei > DoNotStarveTogether and double-click on ‘StartDSTServer.bat’. You should see a command window pop up (eventually two will appear). Once this has finished, open Don’t Starve Together and select ‘Browse Games’. Change the connection to ‘LAN’. Your dedicated server will appear and you’re ready to go!

The dedicated server is a component of Don't Starve Together (DST) that handles the game logic, without any of the graphics related logic. The same server software may be run standalone by a user directly, or run by the game client through the in-game Host server menu. The former case is what people generally refers to when saying "dedicated server", that is a standalone DST server that will not shutdown even if no player is online. In this article, unless otherwise specified, "dedicated server" is always going to refer to former case.

For a quick start setup, see . For a simpler guide to setting up a dedicated server through Steam on a normal computer, see Guides/Simple Dedicated Server Setup.

Requirements

The server software itself can be installed without owning the game. You must own a copy of Don't Starve Together to host dedicated servers, but offline servers does not have this requirement. A single copy of DST can host any number of online dedicated server instances.

Dedicated servers use the same underlying networking infrastructure as client hosted servers since they are the same software. NAT-traversal and relaying will happen automatically if a client cannot establish a direct connection to a dedicated server.

Klei Entertainment Inc. only provides builds of dedicated server for Windows and Linux, both x86 and x86_64 (32 and 64 bits). Non-x86 hardware is not officially supported.

Installation

Downloading through SteamCMD

Download and install SteamCMD per Valve's instructions at .

Start SteamCMD , and run the following commands:

login anonymous force_install_dir /path/to/installation/directory app_update 343050 validate

Use the same commands for updating the game.

Adding

Cluster_1/ |- Master/ # the shard folder for Forest | |- server.ini | |- worldgenoverride.lua | |- leveldataoverride.lua | - modoverrides.lua |- Caves/ # the shard folder for Caves | | ... # same files as Master/ |- cluster.ini |- cluster_token.txt |- adminlist.txt |- whitelist.txt - blocklist.txt

5 like above causes Steam to perform the equivalent of "Verify integrity of game files" in the Steam GUI, removing any files not belonging to the game. Omitting this option may be desirable if mods have been installed, since Steam would remove them during this process.

Downloading through Steam GUI

If you own Don't Starve Together on Steam, a "Don't Starve Together Dedicated Server" item will appear in the 'tools' subsection of your library. Install it same as a normal game. Right click > Manage > Browse local files to view the install location. This will create the exact same set of files as installation using SteamCMD.

Configuration

This section covers the mechanics of configuration a server in detail. See for automated or semi-automated processes of configuration.

An instance of a DST server runs in a . The dedicated server expects the cluster directory to contain one subdirectory for each shard. For example, a cluster named

Cluster_1/ |- Master/ # the shard folder for Forest | |- server.ini | |- worldgenoverride.lua | |- leveldataoverride.lua | - modoverrides.lua |- Caves/ # the shard folder for Caves | | ... # same files as Master/ |- cluster.ini |- cluster_token.txt |- adminlist.txt |- whitelist.txt - blocklist.txt

6 have the following configuration files:

Cluster_1/ |- Master/ # the shard folder for Forest | |- server.ini | |- worldgenoverride.lua | |- leveldataoverride.lua | - modoverrides.lua |- Caves/ # the shard folder for Caves | | ... # same files as Master/ |- cluster.ini |- cluster_token.txt |- adminlist.txt |- whitelist.txt - blocklist.txt

Cluster_1/ |- Master/ # the shard folder for Forest | |- server.ini | |- worldgenoverride.lua | |- leveldataoverride.lua | - modoverrides.lua |- Caves/ # the shard folder for Caves | | ... # same files as Master/ |- cluster.ini |- cluster_token.txt |- adminlist.txt |- whitelist.txt - blocklist.txt

7 and

Cluster_1/ |- Master/ # the shard folder for Forest | |- server.ini | |- worldgenoverride.lua | |- leveldataoverride.lua | - modoverrides.lua |- Caves/ # the shard folder for Caves | | ... # same files as Master/ |- cluster.ini |- cluster_token.txt |- adminlist.txt |- whitelist.txt - blocklist.txt

8

Both files are mandatory. The whole cluster gets a single shared cluster.ini, and each shard gets its own server.ini. Refer to https://forums.kleientertainment.com/forums/topic/53014-worldgenoverridelua-with-the-new-post-caves-settings/