Everytime when I try to start my steam games dedicated server while another server or the game itself is already running on the machine, I get the following error on the server startup and cant connect to the server at all:
Steam API failed to initalize!
Is there a way to host multiple steam servers on one dedicated server?
I tried using different ports with the -ports launch option aswell, but I still can run only one Steam server per server. Any help would be greatly appreciated
It looks like the server requires a steam account to function, and one steam account can only be logged into one instance at a time, is there any way to remove this?
I hoped setting “bRelaunchInSteam=false” would fix it, but unfortunately it does not.
I use the steamworks plugin and the advanced steam sessions plugin. This is how I create a server (if its a dedicated server):
LogOnline: Display: STEAM: Loading Steam SDK 1.39
LogWindows: Failed to load '../../../Engine/Binaries/ThirdParty/Steamworks/Steamv139/Win64/steamclient64.dll' (GetLastError=126)
LogWindows: File '../../../Engine/Binaries/ThirdParty/Steamworks/Steamv139/Win64/steamclient64.dll' does not exist
LogOnline: Warning: STEAM: Failed to initialize Steam, this could be due to a Steam server and client running on the same machine. Try running with -NOSTEAM on the cmdline to disable.
LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
LogOnline: Warning: STEAM: Steam API failed to initialize!
LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
Hey there! After trying around my self, I figured it out. You have to use different ports for both servers, and not only the game server port but also the Steam query port. By default this is 7777 and for Steam 27015, so your second server should use 7778 and 27016 as an example
You can set that by launching your first server with
Thank you so much! Where do I set the query port? I tried using a .bat file with “C:\Location\MyGameServer.exe Port=7778 QueryPort=27016” but that didnt work. Thanks in advance!
Weird, I thought generally the Port and QueryPort command line parameters are built in the engine by default. There’s a way to set these using the DefaultEngine.ini, but that wouldn’t make sense since you’d have the same server build just open multiple times.