steamsockets: binding to port 7777 failed.

I know there are other questions on here, none of the answers have worked. I have a BP only project. Set up steam per Rama’s tutorial. defaultengine.ini has:

[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
 
[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20
 
[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
GameServerQueryPort=27015
bRelaunchInSteam=false
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90
 
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="/Script/OnlineSubsystemSteam.SteamNetConnection"

The DLL’s are already in the right directory (seems you all started adding that into engine distributions), v132 the most recent version.

I can package the program, and when it runs I get the steam overlay in the bottom right, shift-tab opens it. So steam is working, to some extent.

When I create a session, it fails with a ‘net driver listen error’. Looking in the logs I find:

[2015.09.20-02.44.45:576][276]LogAIModule: Creating AISystem for world Abandoned
[2015.09.20-02.44.45:576][276]LogWorld: Game class is 'L_Deathmatch_C'
[2015.09.20-02.44.45:576][276]LogInit: SteamSockets: Socket queue 131072 / 131072
[2015.09.20-02.44.45:576][276]LogNet:Warning: Failed to init net driver ListenURL: /Game/Maps/Abandoned?listen?game=DM: SteamSockets: binding to port 7777 failed (0)
[2015.09.20-02.44.45:576][276]LogNet:Warning: Network Failure: GameNetDriver[NetDriverListenFailure]: SteamSockets: binding to port 7777 failed (0)
[2015.09.20-02.44.45:576][276]LogNet: NetworkFailure: NetDriverListenFailure, Error: 'SteamSockets: binding to port 7777 failed (0)'
[2015.09.20-02.44.45:577][276]LogWorld: Failed to listen: SteamSockets: binding to port 7777 failed (0)
[2015.09.20-02.44.45:577][276]LogNet:Error: LoadMap: failed to Listen(/Game/Maps/Abandoned?listen?game=DM)
[2015.09.20-02.44.45:580][276]LogWorld: Bringing World /Game/Maps/Abandoned.Abandoned up for play (max tick rate 0) at 2015.09.19-19.44.45
[2015.09.20-02.44.45:580][276]LogWorld: Bringing up level for play took: 0.002452
[2015.09.20-02.44.45:581][276]LogOnline:Warning: STEAM: Can't start an online session (Game) in state InProgress
[2015.09.20-02.44.45:591][277]LogNet: Browse: /Game/Maps/Menus?closed
[2015.09.20-02.44.45:591][277]LogNet: Failed; returning to Entry
[2015.09.20-02.44.45:638][277]LogLoad: LoadMap: /Game/Maps/Menus?closed

So it is not binding to port 7777. All other advice I saw for this (what little is out there), says it is the ini file that needs changed, I think those are old answers, my INI seems to be where it should, AND the overlay comes up…

Any ideas?

I think I must have a similar issue, I get the overlay and didn’t get any errors when packaging the game. I can also host a game, the problem is my game cant be found using hte find sessions node unless I port forward. I have done this so I can host games fine however it is a bit much to ask everyone to port forward in order to host a game so I need to fix this.

I assume the problem is to do with steam’s NAT punching not being enabled or something, however I don’t know how I would fix this. Any ideas?

I"m also currently facing this issue? Any response from anyone else? or did you manage to solve the problem?

I am facing the same Issue. Anyone?

I fixed it by replacing the commands I had in the DefaultEngine.ini with these updated ones:

Had the same bug.
Fix was int the DefaultEngine.ini
change
[/Script/Engine.Engine]
to
[/Script/Engine.GameEngine]

I am surprised that this issue of [/Script/Engine.Engine] to [/Script/Engine.GameEngine] still exist in new 4.25 version as well… Amazing… un-believable.

Hello everyone, I ran into the same problem on 5.5.1, Connected everything according to the documentation, enabled the Stream Sockets plugin, changed the definition of NetDriver. Text From DefaultEngine:

[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/SteamSockets.SteamSocketsNetDriver",DriverClassNameFallback="/Script/SteamSockets.SteamNetSocketsNetDriver")


[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=*******
bInitServerOnClient=true


[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"

I use the Travel Server from the Advanced Session - It throws the game into the menu. In Standalone mode, the logs were captured in the editor:

[2024.12.27-20.53.37:282][719]LogSteamSocketsAPI: Error: SteamSockets API: Error Cannot create listen socket. Already have a listen socket on P2P vport 7777
[2024.12.27-20.53.37:282][719]LogNet: Warning: SteamSockets: InitListen failed to start listening on the Steam Network.
[2024.12.27-20.53.37:283][719]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = NetDriverListenFailure, ErrorString = , Driver = Name:GameNetDriver Def:GameNetDriver SteamSocketsNetDriver_1
[2024.12.27-20.53.37:283][719]LogNet: Warning: Network Failure: GameNetDriver[NetDriverListenFailure]:
[2024.12.27-20.53.37:284][719]LogNet: NetworkFailure: NetDriverListenFailure, Error: ‘’
[2024.12.27-20.53.37:284][719]LogWorld: Failed to listen:
[2024.12.27-20.53.37:284][719]LogNet: DestroyNamedNetDriver SteamSocketsNetDriver_1 [GameNetDriver]
[2024.12.27-20.53.37:285][719]LogSockets: Warning: SteamSockets: Cannot get information on an invalid socket handle, returning null
[2024.12.27-20.53.37:285][719]LogNet: Error: LoadMap: failed to Listen(/Game/Maps/FirstPersonMap?listen)

Also, when uploading the build to Steam and running it through the launcher, it does not bring results. Maybe someone has come across recently?

I think it’s because when you attempt to travel as a server, Unreal forces the “listen” parameter into the URL. So when you’re trying to travel to “MyLevel”, you’re actually going to “MyLevel?listen”. You only need it the first time, though.

I’m having this same issue. I did a test where I called “EnableListenServer(false)” on the Game Instance before traveling. After that change I was able to load the level; however no clients could join the game in progress.

To date the only way I’ve been able to start an online multiplayer session on a UE 5.5.1 build for Steam is using the pre-SteamSockets code without Seamless Travel. Nothing else works. The experience has been…Unreal.