UE4 multiplayer black screen for the joined client

Trying to start a server with a client using ThirdPerson C++ template following the documentation. But only getting a black screen when trying to connect with the client:

Starting server with:
"G:\Programs\UnrealEngine\UE_4.26\Engine\Binaries\Win64\UE4Editor.exe" "D:\Projects\UE4\PuzzlePlatforms\PuzzlePlatforms.uproject" -server -game -log

Starting client with:
"G:\Programs\UnrealEngine\UE_4.26\Engine\Binaries\Win64\UE4Editor.exe" "D:\Projects\UE4\PuzzlePlatforms\PuzzlePlatforms.uproject" 127.0.0.1:7777 -game

Server log
Client log

I also tried connecting the client using my actual IP address:
image

With the exact same result.

At the end of the logs it gives a warning in yellow:

[2022.06.26-15.03.19:655][365]LogOnlineSession: Warning: OSS: No game present to join for session (GameSession)

Don’t know if that’s of any relevance.

How to make it work properly?

1 Like

Had to specify the map for the server to load, fixed it with:

"G:\Programs\UnrealEngine\UE_4.26\Engine\Binaries\Win64\UE4Editor.exe" "D:\Projects\UE4\PuzzlePlatforms\PuzzlePlatforms.uproject" /Game/ThirdPersonCPP/Maps/ThirdPersonExampleMap -server -game -log

And now it works as expected, multiple clients can join and see each other.

1 Like