Jump to content

[HowTo] Run a Dedicated Server from your PC - without SteamCMD or the Dedicated Server Tool


Recommended Posts

Hi @Xiellify, welcome to the forums! (And sorry for the late reply!)

It does look like the port that your caves server is trying to use is already being used. Do you happen to have another server running? If not, you can manually change the port by going to (My) Documents\Klei\DoNotStarveTogether\Cluster_5\Caves and opening server.ini with a file editor, then changing server_port = 10999 under [NETWORK] to something else, for example, server_port = 11009.

Link to comment
Share on other sites

14 hours ago, alainmcd said:

@FreyaMaluk, sorry, I have no idea. Is your ping shown when you host a server with caves? I believe it's the server_port under [NETWORK] in the server.ini file of your master server the one that should be forwarded, so make sure it is. Other than that I can't help you. :(

how can I do that? should I change something in the server.ini file? and if that's the case.. what should I do exactly?

Link to comment
Share on other sites

I'm assuming the world you host that shows the ping properly isn't the same world.

Go to (My) Documents\Klei\DoNotStarveTogether\Cluster_5\Master and open server.ini in any file editor, open the server.ini file for the other world you're hosting and compare the server_port from each file. Change the server_port from Cluster_5 so they match - should be OK as long as you don't try and host both worlds simultaneously.

Link to comment
Share on other sites

Thanks a bunch for this. Been trying to get a dedicated server running on my laptop with a few basic variety/balance mods to take advantage of the quad-core system, but figuring out how to transfer all the world/mod settings over and get a console running was becoming somewhat of a pain.

I hope this topic gets pinned. Good work.

Link to comment
Share on other sites

Hello there. This is what happens when I try to run the batch file:

[00:00:04]: [200] Account Failed (6): "E_INVALID_TOKEN"
[00:00:04]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:04]: !!!! Your Server Will Not Start !!!!
[00:00:04]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:04]: No auth token could be found.
[00:00:04]: To generate a cluster_token you must
[00:00:04]: open the console from a logged-in game
[00:00:04]: client with the tilda key (~ / ) and type:
[00:00:04]: TheNet:GenerateClusterToken()
[00:00:04]: This will create 'cluster_token.txt' in
[00:00:04]: your client settings directory. Copy this
[00:00:04]: into your cluster settings directory.
[00:00:04]: [Connect] PendingConnection::Reset(true)
[00:00:04]: ... FilesExistAsyncThread complete

I tried following these instructions but the same thing happened again.

Link to comment
Share on other sites

1 hour ago, Alarsin said:

Hello there. This is what happens when I try to run the batch file:

[00:00:04]: [200] Account Failed (6): "E_INVALID_TOKEN"
[00:00:04]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:04]: !!!! Your Server Will Not Start !!!!
[00:00:04]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:04]: No auth token could be found.
[00:00:04]: To generate a cluster_token you must
[00:00:04]: open the console from a logged-in game
[00:00:04]: client with the tilda key (~ / ) and type:
[00:00:04]: TheNet:GenerateClusterToken()
[00:00:04]: This will create 'cluster_token.txt' in
[00:00:04]: your client settings directory. Copy this
[00:00:04]: into your cluster settings directory.
[00:00:04]: [Connect] PendingConnection::Reset(true)
[00:00:04]: ... FilesExistAsyncThread complete

I tried following these instructions but the same thing happened again.

Nvm, I solved this problem by deleting my .bat file and inserting it again.

Thanks alainmcd for that awesome and simple guide! :D

Link to comment
Share on other sites

Seems kind of awkward replying to this at such a late time, but I'm having a bit of an issue with starting up the server.

I had been using this method for the past month or so, and just yesterday, the Server Master won't finish loading. Caves does finish, with the Sim Paused message, however the Server Master simply doesn't continue past a certain point.

The part where it ends:

[00:02:17]: [Shard] Starting master server
[00:02:17]: [Warning] Could not confirm port 10888 is open in the firewall.
[00:02:17]: [Shard] Shard server started on port: 10888
[00:02:17]: Telling Client our new session identifier: 023E56330C56EE0E
[00:02:17]: ModIndex: Load sequence finished successfully.
[00:02:18]: Reset() returning
[00:02:18]: [Steam] SteamGameServer_Init(8766, 10999, 27016)
Setting breakpad minidump AppID = 322330
[00:02:18]: [Steam] SteamGameServer_Init success
[00:02:19]: Validating portal[6] <-> 1996392949[6] (inactive)
[00:02:19]: Validating portal[8] <-> 1996392949[8] (inactive)
[00:02:19]: Validating portal[1] <-> 1996392949[1] (inactive)
[00:02:19]: Validating portal[2] <-> 1996392949[2] (inactive)
[00:02:19]: Validating portal[5] <-> 1996392949[5] (inactive)
[00:02:19]: Validating portal[3] <-> 1996392949[3] (inactive)
[00:02:19]: Validating portal[10] <-> 1996392949[10] (inactive)
[00:02:19]: Validating portal[9] <-> 1996392949[9] (inactive)
[00:02:19]: Validating portal[7] <-> 1996392949[7] (inactive)
[00:02:19]: Validating portal[4] <-> 1996392949[4] (inactive)
[00:02:19]: Sim paused
[00:02:19]: Gameserver logged on to Steam, assigned SteamID [A:1:1296870406:10419]
[00:02:21]: [Shard] Slave Caves(1996392949) connected: [LAN] 127.0.0.1
[00:02:22]: [Shard] Slave Caves(1996392949) ready!
[00:02:22]: World 1996392949 is now connected
[00:02:22]: Validating portal[6] <-> 1996392949[6] (disabled)
[00:02:22]: Validating portal[8] <-> 1996392949[8] (disabled)
[00:02:22]: Validating portal[1] <-> 1996392949[1] (disabled)
[00:02:22]: Validating portal[2] <-> 1996392949[2] (disabled)
[00:02:22]: Validating portal[5] <-> 1996392949[5] (disabled)
[00:02:22]: Validating portal[3] <-> 1996392949[3] (disabled)
[00:02:22]: Validating portal[10] <-> 1996392949[10] (disabled)
[00:02:22]: Validating portal[9] <-> 1996392949[9] (disabled)
[00:02:22]: Validating portal[7] <-> 1996392949[7] (disabled)
[00:02:22]: Validating portal[4] <-> 1996392949[4] (disabled)

 

Also sorry if there is a rule regarding replying to late posts. I looked through most of em and didn't see one, and felt it was appropriate to reply with my issue on here.

Thanks for your time

EDIT: After waiting about 10 minutes or so, the server came online on it's own.

Link to comment
Share on other sites

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...