Jump to content

No one can connect to my server


Recommended Posts

Hello everyone :-)
 
I have been trying to set up my own dedicated server for a while now with no success. I have tried many different configurations of the dedicated software, and none of them have let me or my friends connect, and only sometimes am I able to connect locally. Some have shown on the server listing for others, and others have not. I have not seen my own server on the listings at all except for on http://my.jacklul.com/dstservers/ and even then, sometimes it says the server is unreachable. (This may be because of something I found called 'Hairpin NAT', which I do not fully understand myself, but I believe it to maybe be the problem causing myself not to see my own server. This is not the issue I wish to discuss, however.) When me or my friends try to connect using the console command 'c_connect(ip, port, password)' we get the error message: "Server not responding. Try yelling louder?" and sometimes with: "Reason: Direct connection timed out". I have looked into this problem, but I've tried as many possible solutions with no sign of improvement.
 
I am hosting on a separate computer on the same local network as the computer I play on. The server is running Windows XP Home Edition Service Pack 3. Port 10999 and ports 27000-27050 are forwarded to my server. The large range is for other steam related servers that I host, but this maybe this may have an effect on hosting DST. The firewall on the server computer is disabled from the control panel, and there is no other security software installed. I use SteamCMD to download the software, and use batch files to automate the process of updating and running my servers. For testing purposes, however, I have been doing most things manually to ensure it isn't my scripts causing the issue. When me or my friends test, we ensured we all were running the same version of DST as the server.
 
 
 
 
Let me share my most recent test from the beginning.
Here, I download a clean copy of the software, and run it with no extra configuration.
The only thing I do besides that is add my server token, because it is necessary.
=========================================================================================* Started SteamCMD manually by clicking on the executable. It opens manually with a command prompt.* Entered the following commands:    login anonymous    force_install_dir apps\donotstarvetogether\    app_update 343050 validate* The software downloads and validates successfully* I enter 'quit' to exit SteamCMD* I click 'dontstarve_dedicated_server_nullrenderer.exe' to run the server    The 'Klei' folder is created in 'Documents and Settings'    Inside, settings.ini is generated, along with the 'save' directory structure    The server fails to start due to the lack of a server token* I close the server (just by clicking the 'X' in the corner)* I paste my server_token.txt in the same directory as settings.ini* I start the server again.* Once it is done starting up, I close the server again.=========================================================================================
 
The following is the contents of log.txt: 

[00:00:00]: Starting Up

[00:00:00]: Version: 138964
[00:00:00]: Current time: Tue Jun 09 12:09:09 2015
 
[00:00:00]: Don't Starve Together: 138964 WIN32
NNN Build Date: 2015-06-08_11-23-52
[00:00:00]: Parsing command line
[00:00:01]: Command Line Arguments: 
[00:00:01]: Initializin Minidump handler
[00:00:01]: ....Done
[00:00:01]: Fixing DPI
[00:00:01]: ...Done
[00:00:01]: THREAD - started 'GAClient' (604)
[00:00:01]: HttpClient::ClientThread::Main()
[00:00:01]: ProfileIndex:3.76
[00:00:01]: THREAD - started 'GAClient' (824)
[00:00:01]: HttpClient::ClientThread::Main()
[00:00:01]: THREAD - started 'GAClient' (516)
[00:00:01]: HttpClient::ClientThread::Main()
[00:00:01]: Network tick rate: U=15(2), D=0
[00:00:01]: Network tick rate: U=15(2), D=0
[00:00:01]: Authorized application D:\SteamCMD\apps\donotstarvetogether\bin\dontstarve_dedicated_server_nullrenderer.exe is enabled in the firewall.
[00:00:01]: WindowsFirewall - Application already authorized
[00:00:01]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/blocklist.txt (Failure)
[00:00:01]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/adminlist.txt (Failure)
[00:00:01]: OnLoadUserIdList: APP:Klei/DoNotStarveTogether/save/whitelist.txt (Failure)
[00:00:01]: Server token retrieved from: server_token.txt
[00:00:01]: cGame::InitializeOnMainThread
[00:00:01]: THREAD - started 'GAClient' (3536)
[00:00:01]: THREAD - started 'GAClient' (3816)
[00:00:01]: Renderer initialize: Okay
[00:00:01]: HttpClient::ClientThread::Main()
[00:00:01]: HttpClient::ClientThread::Main()
[00:00:01]: AnimManager initialize: Okay
[00:00:01]: Buffers initialize: Okay
[00:00:01]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:01]: FMOD Error: An invalid object handle was used. 
[00:00:01]: GameSpecific initialize: Okay
[00:00:01]: cGame::StartPlaying
[00:00:02]: LOADING LUA
[00:00:02]: DoLuaFile scripts/main.lua
[00:00:02]: DoLuaFile loading buffer scripts/main.lua
[00:00:02]: scripts/main.lua(167,1) running main.lua
 
[00:00:02]: Could not load modindex
[00:00:02]: ModIndex: Beginning normal load sequence for dedicated server.
 
[00:00:02]: DownloadMods(0)
[00:00:02]: FMOD Error: An invalid object handle was used. 
[00:00:03]: LOADING LUA SUCCESS
[00:00:03]: PlayerDeaths could not load morgue
[00:00:03]: could not load profile
[00:00:03]: loaded profile
[00:00:03]: bloom_enabled false
[00:00:03]: Could not load saveindex
[00:00:03]: OnFilesLoaded()
[00:00:03]: OnUpdatePurchaseStateComplete
[00:00:04]:  Load FE
[00:00:04]:  Load FE: done
[00:00:05]: ModIndex: Load sequence finished successfully.
[00:00:05]: Reset() returning
[00:00:05]: [200] Account Communication Success (6)
[00:00:05]: [ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_[user_ID_here]
[00:00:05]: Starting Dedicated Server Game
[00:00:05]: Network tick rate: U=15(2), D=0
[00:00:05]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:00:05]: Setting up socket descriptors
[00:00:05]: Online Server Started on port: 10999
[00:00:06]: Collecting garbage...
[00:00:06]: lua_gc took 0.06 seconds
[00:00:06]: ~NetworkLuaProxy()
[00:00:06]: ~SimLuaProxy()
[00:00:06]: lua_close took 0.14 seconds
[00:00:06]: ReleaseAll
[00:00:06]: ReleaseAll Finished
[00:00:06]: cGame::StartPlaying
[00:00:06]: LOADING LUA
[00:00:06]: DoLuaFile scripts/main.lua
[00:00:06]: DoLuaFile loading buffer scripts/main.lua
[00:00:07]: scripts/main.lua(167,1) running main.lua
 
[00:00:07]: loaded modindex
[00:00:07]: ModIndex: Beginning normal load sequence for dedicated server.
 
[00:00:07]: LOADING LUA SUCCESS
[00:00:07]: PlayerDeaths could not load morgue
[00:00:07]: could not load profile
[00:00:07]: loaded profile
[00:00:07]: bloom_enabled false
[00:00:07]: Could not load saveindex
[00:00:07]: OnFilesLoaded()
[00:00:07]: OnUpdatePurchaseStateComplete
[00:00:07]: Not applying world gen overrides.
[00:00:07]: WorldSim::SimThread::SimThread()
[00:00:07]: WorldSim::SimThread::SimThread() complete
[00:00:08]: ModIndex: Load sequence finished successfully.
[00:00:08]: THREAD - started 'WorldSim' (3888)
[00:00:08]: Reset() returning
[00:00:08]: WorldSim::SimThread::Main()
[00:00:08]: DoLuaFile scripts/worldgen_main.lua
[00:00:08]: DoLuaFile loading buffer scripts/worldgen_main.lua
[00:00:08]: DLC enabled :  false
[00:00:08]: scripts/worldgen_main.lua(78,1) running worldgen_main.lua
 
[00:00:08]: scripts/worldgen_main.lua(80,1) SEED =  1433866156
[00:00:08]: scripts/worldgen_main.lua(483,1) WORLDGEN PRESET:  SURVIVAL_TOGETHER
[00:00:08]: scripts/worldgen_main.lua(491,1) WORLDGEN LEVEL ID:  1
[00:00:08]: scripts/worldgen_main.lua(498,1) 
#######
#
# Generating Normal Mode Together Forever Level
#
#######
 
[00:00:09]: AddPortMapping(10999, 10999, 192.168.1.49) failed with code 501 (Action Failed)
[00:00:09]: Creating story...
[00:00:09]: LinkNodesByKeys
[00:00:09]: Baking map... 425
[00:00:17]: Map Baked!
[00:00:18]: Encoding...
[00:00:18]: Encoding... DONE
[00:00:18]: Checking Tags
[00:00:18]: Populating voronoi...
[00:00:20]: Done forest map gen!
[00:00:20]: scripts/worldgen_main.lua(246,1) Checking map...
[00:00:20]: scripts/worldgen_main.lua(626,1) Generation complete
[00:00:22]: WorldSim::SimThread::Main() complete
[00:00:23]: Serializing world session to session/002001950092C64C/0000000001
[00:00:23]:  Unload FE
[00:00:23]:  Unload FE done
[00:00:24]:  LOAD BE
[00:00:26]: Could not preload undefined prefab 0x4058bc0 (molehat)
[00:00:27]: Could not preload undefined prefab 0x20e21d7a (puppet_wes)
[00:00:27]: Could not preload undefined prefab 0x20e21d7a (puppet_wes)
[00:00:28]:  LOAD BE: done
[00:00:28]: Begin Session: 002001950092C64C
[00:00:28]: saving to server_temp/server_save
[00:00:29]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:00:30]: Loading Nav Grid
[00:00:30]: OVERRIDE: setting season_start to autumn
[00:00:40]: Reconstructing topology
[00:00:40]:  ...Sorting points
[00:00:40]:  ...Sorting edges
[00:00:40]:  ...Connecting nodes
[00:00:40]:  ...Validating connections
[00:00:40]:  ...Housekeeping
[00:00:40]:  ...Done!
[00:00:40]: 1 uploads added to server. From server_temp
[00:00:41]: Telling Client our new session identifier: 002001950092C64C
[00:00:41]: SteamGameServer_Init Success

 

 
Results:
=========================================================================================Server is not shown in in-game list for me/friendsJacklul shows server is up, and does not show it as 'unreachable'Using 'c_connect("my_public_ip", 10999)' does not work ("Server not responding; Direct connection timed out")For me, using 'c_connect("server_local_ip", 10999)' lets me connect and play as expectedSometimes when connecting locally, my client will get stuck on the loading screen (the darkened picture of deerclops while you wait to connect) The server console doesn't show me trying to connect. The only way out is Alt+F4=========================================================================================

 

 

There are also some things in the log which I noticed:

 

[00:00:01]: Authorized application D:\SteamCMD\apps\donotstarvetogether\bin\dontstarve_dedicated_server_nullrenderer.exe is enabled in the firewall.

[00:00:01]: WindowsFirewall - Application already authorized
I dont know if this is important, because the firewall is suppose to be disabled. It still is when I go to check.
 

[00:00:05]: [Warning] Could not confirm port 10999 is open in the firewall. 

[00:00:09]: AddPortMapping(10999, 10999, 192.168.1.49) failed with code 501 (Action Failed)
These two lines make me think that it may be trying to do something like auto-forward the port. I assure you, the port is forwarded in my router, for both UDP and TCP traffic, to the correct machine.
 
 
 
 
Other than that, the log seems as normal as I can tell from other runs.
As you can see in the log, it found and gathered my server_token without a problem.
The settings.ini was unchanged by me. Here are the default contents: (Equal signs are just used for spacing; they are not in the file)
=========================================================================================[MISC]CONSOLE_ENABLED = trueautocompiler_enabled = true[network]default_server_name = [Host]'s World=========================================================================================

 

 

 

And that about sums up that test.
The main problem is that this is as clean as a server as I can think of, and it will still not work. I've followed the instructions on the Wikia and ended up with this simplified process. I mainly just skipped the creation of the scripts and customization. The troubleshooting was no help either.
 
I do have my main configuration, the one with my custom scripts to launch and update the server, along with custom directories for the install, config files, and scrips. If need be, I could outline that as well, but for now it would be a waste of time. All I wanted to say about that setup, is that it should work the same as this test one, but I’ve filled in almost every optional parameter I could with custom information. It too runs into the same problems as the test setup.
 
If anyone has any insight at all, I would like to know all I can about the issue. I will respond with the results if you have something you want me to test, that is, if I can actually test it. I don’t know what good they may do, but I can supply screenshots on request to make the situation more clear. I hope I didn’t leave any information out, this is quite a long post. Like I said, I have tried many things to try and get a clue to what is causing the problem, but no dice. Still, anything I have not mentioned I tried, please suggest it!
 
Thank you in advance for any help. To come this close to hosting DST only to have some invisible problem stop me in my tracks is more than frustrating.
Link to comment
Share on other sites

Hello.

 

My friend and I had a similar problem. In our log, there was a line similar to...

 

 

[00:00:05]: [Warning] Could not confirm port 10999 is open in the firewall. 

[00:00:09]: AddPortMapping(10999, 10999, 192.168.1.49) failed with code 501 (Action Failed)

 

... except it said failed with code 718. Eventually, we found that because we also had the game installed, it read from the settings.ini files in both the game directory (C:\...\Documents\Klei\DoNotStarveTogether) and the server directory (C:\...\Documents\Klei\myDSTserver\bin). We made both settings.ini files include "server_port = 10998" under the [network] section of the files and that fixed it. Also we forwarded UDP, if that helps.

 

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