My game works well without the Steam API, I can host a game with open map?listen and join over a network with open ip however I can’t seem to get it working with the Steam API.
I’m pretty sure it’s going wrong here, when I type open map?listen:
[2014.07.18-13.01.38:486][340]LogInit: SteamSockets: Socket queue 131072 / 131072
[2014.07.18-13.01.38:487][340]LogNet:Warning: Network Failure: GameNetDriver[NetDriverListenFailure]: SteamSockets: binding to port 7777
failed (0)
[2014.07.18-13.01.38:487][340]LogNet: NetworkFailure: NetDriverListenFailure, Error: 'SteamSockets: binding to port 7777 failed (0)'
[2014.07.18-13.01.38:487][340]LogNet: DestroyNamedNetDriver IpNetDriver_0 [GameNetDriver]
[2014.07.18-13.01.38:487][340]LogExit: GameNetDriver IpNetDriver_0 shut down
[2014.07.18-13.01.38:487][340]LogWorld: Failed to listen: SteamSockets: binding to port 7777 failed (0)
[2014.07.18-13.01.38:488][340]LogNet:Error: LoadMap: failed to Listen(/Game/Maps/Dev?listen)
I forwarded the 7777 port but it still doesn’t work.
Larger log attached, any help would be appreciated!
Let’s make sure the basics are covered - double-check that everything is set up according the [Steam online subsystem documentation][1]. From the log it looks like the game is trying to use the generic IP net driver instead of the Steam net driver, which means it may not be configured correctly in your DefaultEngine.ini file. The above documentation link has an example of how to set this up.
Yes, I have the DLLs installed in Engine/Binaries.
I have the v130 sdk, but I have to rename the folder to Steamv129a instead as it will complain LogOnline:Warning: STEAM: Steam DLLs not present or failed to load! otherwise.
With the folder name as Steamv129a, the editor log says LogOnline:Warning: STEAM: Steam API disabled!, which apparently is to be expected as the Steam Online Subsystem doesn’t activate in the editor.
I also have the following in my DefaultEngine.ini.
As far as I know, we haven’t tested with other versions of the Steam SDK. It’s worth trying the actual v129a SDK, if possible.
If you are seeing the “Steam API disabled!” message in the same run when you try to open the listen server, try running the server from a non-editor build.
Thanks for the suggestion, I tried the v129a SDK but it yielded the same results as the v130.
The “Steam API disabled” only happens in the editor, but trying with standalone or packaged game results in the “SteamSockets: binding to port 7777 failed” as mentioned in the OP.
Ok, it looks like the documentation I linked to in my previous answer is incorrect as of this posting - sorry about that, I’ll make sure it gets updated.
The section headings in DefaultEngine.ini should be modified as follows from the [documentation][1]:
Change [Engine.GameEngine] to [/Script/Engine.GameEngine]
Change [OnlineSubsystemSteam.SteamNetDriver] to [/Script/OnlineSubsystemSteam.SteamNetDriver]
[2014.07.23-08.04.04:349][613]LogNet:Display: SteamNetDriver_0 bound to port 7777
[2014.07.23-08.04.04:349][613]LogNet: GameNetDriver SteamNetDriver_0 IpNetDriver listening on port 7777
I know this is an old post but i am getting this error still, and i followed several different tutorials with different INI settings, and also the epic documentation.
[2016.03.10-05.24.10:266][407]LogNet:Warning: Failed to init net driver ListenURL: /Game/Maps/Lobby?listen: SteamSockets: binding to port 7777 failed (0)
[2016.03.10-05.24.10:266][407]LogNet:Warning: Network Failure: GameNetDriver[NetDriverListenFailure]: SteamSockets: binding to port 7777 failed (0)
[2016.03.10-05.24.10:266][407]LogNet: NetworkFailure: NetDriverListenFailure, Error: 'SteamSockets: binding to port 7777 failed (0)'
[2016.03.10-05.24.10:266][407]LogWorld: Failed to listen: SteamSockets: binding to port 7777 failed (0)
[2016.03.10-05.24.10:266][407]LogNet:Error: LoadMap: failed to Listen(/Game/Maps/Lobby?listen)
[2016.03.10-05.24.10:266][407]LogWorld: Bringing World /Game/Maps/Lobby.Lobby up for play ( tick rate 0) at 2016.03.09-21.24.10
[2016.03.10-05.24.10:266][407]LogWorld: Bringing up level for play took: 0.000284