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.

alainmcd

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

Recommended Posts

alainmcd    889

@lilmist, yes, you have to shut down your server first. Start the game client, go to the Host screen, open the Mods tab and deselect the mods you want to remove. You might have to briefly enter the game to confirm the changes. Exit and relaunch your server via your script.

Share this post


Link to post
Share on other sites
Xiellify    0

Hello I need help with the caves. Server failed to start because I think the port needs to be changed?

First time trying to run a dedicated server. :)

 

image.thumb.png.9bb6974252cb8795c805686592e8a057.png

Share this post


Link to post
Share on other sites
alainmcd    889

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.

Share this post


Link to post
Share on other sites
FreyaMaluk    4,964

dunno what might be the issue, but if I host directly people can see my ping in the "browse servers" option, but if I host using this method people see my ping as ???

I don't understand why is this happening.

Share this post


Link to post
Share on other sites
alainmcd    889

@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. :(

Share this post


Link to post
Share on other sites
FreyaMaluk    4,964
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?

Share this post


Link to post
Share on other sites
alainmcd    889

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.

Share this post


Link to post
Share on other sites
Kaizerr    0

Hello there, so, this solution is amazing and works fine, I just don't get where I should type c_shutdown() , because when I open the .bat file, my cmd opens, executes it and close, please send help

Share this post


Link to post
Share on other sites
maradyne    4,029

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.

Share this post


Link to post
Share on other sites
Alarsin    816

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.

Share this post


Link to post
Share on other sites
Alarsin    816
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

Share this post


Link to post
Share on other sites
YeOlOdd    0

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.

Share this post


Link to post
Share on other sites