Jump to content

Error Trying to Run Multiple Dedicated Servers


Recommended Posts

I am trying to add another server but I've messed up the ports. Can someone tell me where I've gone wrong here?

Server 1 cluster.ini:

Spoiler

[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true

[NETWORK]
cluster_description = Description
cluster_name = RoverW
cluster_password = password

[MISC]
console_enabled = true

[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10999
cluster_key = supersecretkey

Server 1 Master server.ini:

Spoiler

[NETWORK]
server_port = 11002


[SHARD]
is_master = true


[STEAM]
master_server_port = 10999
authentication_port = 8768


[ACCOUNT]
encode_user_path = true

Server 1 Caves server.ini:

Spoiler

[NETWORK]
server_port = 11003


[SHARD]
is_master = false
name = Caves
id = 545854238


[STEAM]
master_server_port = 10999
authentication_port = 8769


[ACCOUNT]
encode_user_path = true

Server 2 cluster.ini:

Spoiler

[GAMEPLAY]
game_mode = survival
max_players = 5
pvp = false
pause_when_empty = true

[NETWORK]
cluster_description = Dedicated server
cluster_name = Blowind
cluster_password = password

[MISC]
console_enabled = true

[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10889
cluster_key = supersecretkey

Server 2 Master server.ini:

Spoiler

[NETWORK]
server_port = 11001


[SHARD]
is_master = false
name = Caves
id = 1549968938


[STEAM]
master_server_port = 10889
authentication_port = 8767


[ACCOUNT]
encode_user_path = true

Server 2 Caves server.ini

Spoiler

[NETWORK]
server_port = 11000


[SHARD]
is_master = true


[STEAM]
master_server_port = 10889
authentication_port = 8766


[ACCOUNT]
encode_user_path = true

startDSTservers.bat:

Spoiler

c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 +quit
cd /D "c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin64"
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Master
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Caves
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster Blowind -shard Master
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster Blowind -shard Caves

 

In my configuration I have it that the master_server_port of the server.ini are different from the master_port of the cluster.ini. (the master_server_port between the shards has to be the same, which you have correct.) For your Server 1 that would mean for example:

Master 01: master_server_port = 10999
Caves 01: master_server_port = 10999
Cluster 01: master_server_port = 11000

 

The rest of your configuration seems good to me.

3 hours ago, Daniel86268 said:

In my configuration I have it that the master_server_port of the server.ini are different from the master_port of the cluster.ini. (the master_server_port between the shards has to be the same, which you have correct.) For your Server 1 that would mean for example:

Master 01: master_server_port = 10999
Caves 01: master_server_port = 10999
Cluster 01: master_server_port = 11000

 

The rest of your configuration seems good to me.

I changed cluster 1 to:

Master 01: master_server_port = 10999
Caves 01: master_server_port = 10999
Cluster 01: master_server_port = 12999

And cluster 2 to:

Master 01: master_server_port = 10889
Caves 01: master_server_port = 10889
Cluster 01: master_server_port = 12889

It is still only starting one of the clusters. This is the bottom section of the script that stops running:

[00:00:05]: [Warning] Could not confirm port 11000 is open in the firewall.
[00:00:05]: Could not load mod_config_data/modconfiguration_workshop-569043634
[00:00:05]: Could not load mod_config_data/modconfiguration_workshop-2321974509
[00:00:05]: Could not load mod_config_data/modconfiguration_workshop-378160973
[00:00:05]: Could not load mod_config_data/modconfiguration_workshop-375859599
[00:00:05]: Could not load mod_config_data/modconfiguration_workshop-2078243581
[00:00:05]: [Error] Server failed to start!
[00:00:05]: Unhandled exception during server startup: RakNet UDP startup failed: SOCKET_PORT_ALREADY_IN_USE (5)
[00:00:05]: PushNetworkDisconnectEvent With Reason: "ID_DST_INITIALIZATION_FAILED", reset: false
[00:00:05]: Details: SOCKET_PORT_ALREADY_IN_USE
[00:00:05]: [Shard] Stopping shard mode
[00:00:07]: ... FilesExistAsyncThread complete

Are the network ports the problem? I didn't change them past giving them all different ones from 11000-11003.

In general those specific ports are not a problem.

It just sometimes happens that either a random service is already running on a port, or a firewall (like the windows Firewall or somthing) kicks in too hard, making the DST server think that the port is already in use. Either try to add those ports as specific exceptions, or switch to a different port range.

1 hour ago, Daniel86268 said:

Either try to add those ports as specific exceptions, or switch to a different port range.

How would I do this? I changed them (the network ports) to be 12001-12004 and it's still giving the same error about the 11000 number, which isn't even in my files anymore. Is it a setting I need to change on my router?

Sorry, I'm searching outside of here as well, it's just hard to tell what applies to the game and what doesn't when I search port forwarding...

Also, the more I read, the more I realize I have no idea what the ports are or what they're doing. I guess you can't change the network port numbers to anything like you apparently can for the steam ports? Or maybe I'm not understanding those either. How do I know what numbers are available to be used?

Update: Been messing with it and reading various forum posts and ended up with this, which actually seems to be working, in that there aren't any errors I can see, but I still only see one showing up in the DST lobby?

image.thumb.png.03538695b00f4c4af6c06057b7e43e21.png

Update: Okay, they now both work individually, but will not both show up in the DST lobby if I run both at once. So, something must be wrong with this file, right? Any advice is appreciated.

startDSTservers.bat:
c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 +quit
cd /D "c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin64"
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Master
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Caves
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster Rwind -shard Master
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster Rwind -shard Caves

Final update, hopefully: Tried searching and I found it. Both are running, and if I search by name in the online tab then I can join the one that doesn't show up through LAN. Thanks for the help, Daniel!

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...