The title sucks but I can’t think of a better way to succinctly explain what I’m doing.
I implemented eXi’s sessions guide, and used Rama’s steam setup guide, and then a blog post to update eXi’s example to steam. I’m testing steam multiplayer with two PCs and two different steam accounts, for simplicity we’ll call them A and B. The problem I have is that while A can host a game and B can find it, the opposite is not true. If PC B hosts, PC A will fail to find it every time. Both PCs are running the exact same build, and both PCs are on the same network. I have a strong feeling that it’s a problem with my PC and not the game itself, but I’m not really sure how to troubleshoot. PC B (the one that cannot host) is my regular use PC, it has a lot more software installed on it that might cause issues. If it means anything, running the game on standalone using NULL subsystem works just fine on PC B.
Have you made sure both PCs’ steam accounts use the same download server? They probably do because they are on the same network but perhaps one is set to London and one to Manchester or something for some reason. For steam’s Spacewar sessions to work properly, all connecting PCs need to use the same steam download location.
Other than that, perhaps you need to increase the number of sessions being searched because you need to account for all the spacewar sessions that are not your game. This would imply that your bug is completely random, which I don’t believe it is since one computer is connecting everytime but I can’t think of anything else .
I checked and they were using different download servers, so I corrected that, and now it works! But not on the first try, and not every time, so I believe it may in fact be random.
I initially increased the number of search results to 200,000 (per the blog I found), I’ll consider increasing it even more. Is it possible that PC A (which is a much less powerful PC) is unable to find the game because it’s slower or something? I’m not sure if that makes any sense, but maybe it somehow isn’t able to complete the search in the expected time or something. I’m honestly unsure, for now I’ll assume the download server fixed the problem (but why in the world would that be one way?)
Hopefully you’ve found a solution by now but if you have any network interfaces that aren’t actually internet ex “Hamachi” it may mess with your project in some ways for narrowing down reasons why this is something you can try, disable all but your active connection to www
im having a problem rn aswell that led me to this post, my code seems solid and works in standalone but as soon as i push it to steam and try it “Fails to create session”
im using my appid on a non-released game, i woudn’t think this is my issue and should work? but alas im gonna try it with the spacewars ID if i can’t figure out anything else if you know anything about this i’d appreciate