Problem while connecting PS4 game client to a windows dedicated server. Error: binding to port 0 failed
Hello, I'm trying to connect a PS4 game client to a windows dedicated server but I'm getting the following error:
I have made the following change on PS4SocketSubsystem.cpp to set bInIsP2P to false:
And I have a custom PS4Engine.ini file with this content:
And also tried with this:
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?
asked Nov 27 '15 at 01:15 PM in C++ Programming
And a better solution, in which you haven't to change any code on the engine: just tell the game to use the default IpNetDriver instead the PS4 one. You can do that because the only method that PS4NetDriver implements is the one that use CreateSocket.
So just set the Game\Config\PS4\PS4Engine.ini file like this:
answered Dec 02 '15 at 10:45 AM
Ok, I solved it.
I leave my Game\Config\PS4\PS4Engine.ini file like this:
And leave PS4SocketSubsystem.cpp without changes. But I have changed a code line on PS4NetDriver.cpp:
This way I force PS4 to don't use P2P in order to connect to a Windows dedicated server normally.
answered Dec 02 '15 at 09:04 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here