Jump to content

"Could not connect to master server"


Go to solution Solved by Brady_The,

Recommended Posts

Posted
I can't access the public servers, I always get the same error from previous versions.
 
 I already uninstalled and reinstalled, checked the firewalls, reinstalled the .NET and nothing works.
 
 Has anyone had the same problem and managed to solve it?
  • Solution
Posted (edited)

Open "clientsettings.json" in %appdata%/VintageStoryData/ and check what the "masterserverUrl" is set to. It should read: "https://masterserver.vintagestory.at/api/v1/servers/". If it is set to something else, fix the line to the correct one mentioned in this post. That should do the trick.

Edited by Brady_The
  • Like 3
  • 6 months later...
  • 1 month later...
Posted
On 9/13/2024 at 3:21 AM, Brady_The said:

Open "clientsettings.json" in %appdata%/VintageStoryData/ and check what the "masterserverUrl" is set to. It should read: "https://masterserver.vintagestory.at/api/v1/servers/". If it is set to something else, fix the line to the correct one mentioned in this post. That should do the trick.

mine was correct already

  • 1 month later...
Posted (edited)

Open "clientsettings.json" in %appdata%/VintageStoryData/ and look for "webRequestTimeout". The default setting was 10 for me, I changed it to 30 and this solved the issue for me.

Edited by Lenvda
  • Like 3
  • Thanks 1
  • 2 months later...
  • 1 month later...
  • 3 weeks later...
Posted

I ran into this as well and after a bit of troubleshooting managed to figure out why the issue was happening to me. By running Vintage Story from my terminal and looking at the output after trying to pull the server list, I could see that it was trying to query https://masterserver.vintagestory.at/api/v1/servers/list for the server list but was timing out after only 10 seconds. I slapped that address in a browser and managed to get a rather large JSON object containing connection details for a lot of servers but it took more than 10 seconds to download the full list. So I went ahead and increased the "webRequestTimeout" value in my clientsettings.json file to a value that would give my system enough time to download the full list and tried again with resounding success. I can't say for sure that this is the cause of the issue for everyone else here but I hope that this helps.

Also, if the devs are reading this, I think you might want to consider pagination to avoid downloading the full list of servers every time and ensure that results can be returned in a reasonable amount of time.

  • Like 1
  • Thanks 3
  • 3 months later...
Posted

Thank you, that fixed it!
I especially appreciate this as someone who lives in a rural area with not the best internet speeds, 10 seconds to end download of the server list just seems ridiculously small to me, and would keep people in areas with less than stellar internet from being able to play multiplayer if they didn't know how to edit the Json file. 
I really do hope they find a better solution than this, because being forced to edit files in order to play online multiplayer seems like it would keep a lot of new players away from messing with online at all.

  • 2 months later...
Posted
On 10/27/2025 at 2:51 AM, Teh Pizza Lady said:

you mean like this one?

https://status.vintagestory.at/

 

On 10/27/2025 at 2:58 AM, Gnomsky said:

That's a cool thing. But I meant like a server list we could pull up online. Maybe they can even generate revenue, I'm sure they could make money from servers running ads. 

I think what Gnomsky suggestion means is something like a server browser where you can access the list in the web instead of ingame (Exm. Potato.tf, Uncletopia)

  • 3 weeks later...
Posted
On 6/25/2025 at 12:13 PM, Lenvda said:

Open "clientsettings.json" in %appdata%/VintageStoryData/ and look for "webRequestTimeout". The default setting was 10 for me, I changed it to 30 and this solved the issue for me.

Can anyone walk me through doing this/tell me where to find this on a steam deck? 

I'm having the same problem of it giving up after ten seconds and giving the could not connect to master server message.

Posted (edited)

@Chiad I should preface this by saying that Vintagestory on the SteamDeck is installed as a flatpack which I don't think are usually intended to be modified after they're built, so I'm not sure about the permanence of this solution. This might be a good long term solution or you may need to reapply it occasionally after updates. Also, this is going to require a bit of typing, so you may want to connect a mouse and keyboard.

With that out of the way, to find the file in question, you'll need to press the STEAM button on your deck, select Power, press A, select Switch to Desktop, and press A again. Now that you're on the desktop, grab out your trusty mouse and keyboard, open the app menu by clicking on the SteamDeck icon or pressing the Windows key on your keyboard then search for konsole and launch it. Now that you're at the terminal the file in questions seems to be located at /home/deck/.var/app/at.vintagestory.VintageStory/config/VintagestoryData/clientsettings.json. If you're comfortable using terminal based editors and I'm going into way too much detail, then you've probably got it from here and can use your preferred editor to make the change. If not, rather than explain how to use nano or vim (lookup how to exit vim first lest you become trapped), it'll be easier to just copy the sed script below into your konsole window and press enter.

sed -i -E 's/"webRequestTimeout": [0-9]+/"webRequestTimeout": 30/' /home/deck/.var/app/at.vintagestory.VintageStory/config/VintagestoryData/clientsettings.json

This inline sed script searches the config file for the line "webRequestTimeout": <any number> and replaces it with "webRequestTimeout": 30. You can replace the 30 with any value you'd like to tune the timeout to something that works for your connection speed. You can also run this script as many times as you like and it will simply update the timeout to whatever you replace the 30 with. After each change you can run the following to verify that the value was updated correctly.

grep "webRequestTimeout" /home/deck/.var/app/at.vintagestory.VintageStory/config/VintagestoryData/clientsettings.json

If all went well, you should get some output that looks like this

	"webRequestTimeout": 30,

This indicates that the field was updated correctly. Restart vintagestory if it's already running and then try checking the server list again. Please let me know if any of this is unclear or if you have any questions but hopefully this helps. Good luck :)
 

Edited by daitama
  • Thanks 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.