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.

bountygiver

Unable to host server

Recommended Posts

bountygiver    54

I had followed the instructions to get my token and placed the file in the same directory, but the dedicated server console still reports authentication failed and ask me to generate a token, I have tried generating a few more and none of them work...

 

I installed the server from steam -> tools

 

By the way my copy of DST is a gift from my brother's frontier pack, will that affect my ability to host dedicated servers?

Share this post


Link to post
Share on other sites
rezecib    3,143

@bountygiver, No, that won't affect it.

 

Hmm... The instructions do say to copy the server_token.txt file, but this isn't what was required before... Maybe that's why so many people are having problems? I have mine as the last line of my settings.ini, under [account]:

server_token = blahblahblah

Try that and see if it works?

Share this post


Link to post
Share on other sites
TonyV    9

Put the server_token.txt file either in your Documents\Klei\DoNotStarveTogether folder (Windows) or in ~/.klei/DoNotStarveTogether (Linux).

 

If you're using a -conf_dir option, put it in a subdirectory of the Klei directory based on the conf_dir name.  For example, if you're running the dedicated server with -conf_dir configs, then the server_token.txt file should go in Documents\Klei\configs (Windows) or ~/.klei/configs (Linux)

Share this post


Link to post
Share on other sites

Looking at the log file it says "Server token retrieved from: server_token.txt"

so it's getting it but then at the end it just gives the 

[200] Account Failed (6): "E_EXPIRED_TOKEN"

 

I must be doing something stupid but simple wrong

Share this post


Link to post
Share on other sites
rezecib    3,143

@Demiskeleton, This is what the wiki says about that error:

If you get the error Account Failed (6): "E_EXPIRED_TOKEN" you’ll want to verify that your saved the settings.ini file with the server token after you closed the game client, or your change will get overwritten.

Share this post


Link to post
Share on other sites

I figured it out!

I took the server token and put it in my settings.ini as server_token = 

and I also added my player token =

both under the [account]

finally deleted the server_token.txt file to something else (don't think this does anything but did it anyway)

 

thanks for all the help guys

Share this post


Link to post
Share on other sites
MarkL    536

@Demiskeleton, Very weird that fixed it for you-  maybe the token is loading improperly from the file in some cases.  Thank you for posting your solution of putting the token into settings.ini.

 

Share this post


Link to post
Share on other sites
bountygiver    54

Alright after trying those method it still doesn't work, I think this is because the server uses "/" instead of "\" even when it is on Windows, since the log file also reported unable to create save files with the erroneous path

Share this post


Link to post
Share on other sites