I’m using the Steam platform and the 480 Spacewar AppID to test online capabilites for our game. I have two computers that always find and manage to join each others sessions, but there’s a third one that only sometimes does so. Sometimes it finds sessions hosted by others, and sometimes others can find sessions hosted by it, but most of the time it neither finds nor broadcasts sessions. Even when the other two are in a session together, the third computer can’t find it.
I once tried to log into a different steam account on the third one, and made a change, but it was only temporary. Googling the issue has been hard, because I only find questions from people who never manage to find any sessions at all. In this case however, it sometimes works for this computer, while it always works for the other two.
After comparing our project with another project that was functioning properly, we identified two differences in our DefaultEngine.ini. They had the “bEnableSteam” flag set to true, we didn’t have it at all. They had their query port blank, we had ours set to the one we found online, namely 27015.
After we left our GameServerQueryPort blank and added “bEnableSteam=true”, everything works fine. We can connect to all computers we’ve tested on every single attempt now.
These are the settings we’ve found to be the bare minimum for functional online session hosting:
[OnlineSubsystem]
DefaultPlatformService=Steam
[OnlineSubsystemSteam]
bEnableSteam=true
SteamDevAppId=480 or your own ID
If you have these and it still doesn’t work, make sure you’ve got the right build dependencies and plugins set up. You could also try reinstalling the engine. We got these issues once more after an engine install going corrupt between a new engine versions Preview updates, and reinstalling fixed this.
If that doesn’t work, you should google some UE4 steam online subsystem tutorials and make absolutely sure you’ve followed all the steps, and potentially try setting Steam up in a blank project to make sure it’s not an error in your project that’s causing it.
Have everything fine. Sometimes the client sees the Session, sometimes doesnt find any Session. Can not confirm if its a Create Advanced Session problem or a Find Advanced Session. I was thinking, what if its a Steam problem or Spacewars problem?
Its very weird because sometimes works fine all day long but sometimes doesnt.