Fix for UE-239936 Steam Sockets cannot create listen socket during non-seamless server travel

Hi all,

I was running into an error when trying to server travel using steam networking:

After searching I managed to find Unreal Engine Issues and Bug Tracker (UE-239936) , which states “The issue does not occur when FSteamSocketsSubsystem::CleanSocketInformation is called after unloading the previous world.” yet doesn’t give an exact location. I have found a working location for this fix.

Note that you have to make CleanSocketInformation public inside of SteamSocketsSubsystem.h. I believe this is okay because the only other place CleanSocketInformation is exposed is through command line arguments.
Now my logs are without error:

This fixed my server travel for my p2p host. However I have not yet thoroughly tested this fix with multiple clients. Hopefully this saves you some time.

Warm regards,

Seventh Eye Studio

Check out our game Ascent of Eternity on EGS or Steam!

2 Likes

Hey there @SeventhEyeStudio! Welcome to the community! Amazing work with this fix. Have you submitted this as a PR to the Github?