Hello,
I’m trying to connect a PS4 game client to a windows dedicated server but I’m getting the following error:
LogNet:Warning: Failed to init net driver ConnectURL: [dedicated ip]//Game/Maps/StartupMap: BSD: binding to port 0 failed (5)
LogNet:Warning: error initializing the network stack
LogNet: DestroyNamedNetDriver PS4NetDriver_0 [PendingNetDriver]
LogExit: PendingNetDriver PS4NetDriver_0 shut down
LogNet:Warning: Travel Failure: [PendingNetGameCreateFailure]: BSD: binding to port 0 failed (5)
LogNet: TravelFailure: PendingNetGameCreateFailure, Reason for Failure: 'BSD: binding to port 0 failed (5)'
LogNet:Warning: Travel Failure: [ClientTravelFailure]:
LogNet: TravelFailure: ClientTravelFailure, Reason for Failure: ''
I have made the following change on PS4SocketSubsystem.cpp to set bInIsP2P to false:
//return ( Socket != INVALID_SOCKET ) ? new FPS4Socket( Socket, SOCKTYPE_Datagram, SocketDescription, true, this ) : nullptr;
return (Socket != INVALID_SOCKET) ? new FPS4Socket(Socket, SOCKTYPE_Datagram, SocketDescription, false, this) : nullptr;
And I have a custom PS4Engine.ini file with this content:
[/Script/Engine.Engine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemPS4.PS4NetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[OnlineSubsystem]
DefaultPlatformService=PS4
PollingIntervalInMs=20
[OnlineSubsystemPS4]
bEnabled=true
And also tried with this:
[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemPS4.PS4NetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[OnlineSubsystem]
DefaultPlatformService=PS4
PollingIntervalInMs=20
[OnlineSubsystemPS4]
bEnabled=true
But both of them finally gives me the same error when trying to connect to the server.
I have no problems with a windows game client so I think is a PS4 related problem.
Does anyone know how to make it run?
Thanks.