How to setup project for LAN multiplayer?

Hi,

I want to create a multiplayer LAN game. For this I added

PrivateDependencyModuleNames.Add("OnlineSubsystem");

in MyProject.Build.cs (in Source\MyProject)

and in DefaultEngine.ini (in Config)

[OnlineSubsystem]
DefaultPlatformService=LAN

I also tried different settings like =Null, =NULL, =Lan, etc.

In my Game, i start with a FindSessions node and if that fails, I use a CreateSession node. But both always fail.

My log is showing following:

LogScript:Warning: FindSessions - Invalid or uninitialized OnlineSubsystem
LogScript:Warning: FindSessions - Cannot map local player to unique net ID
LogScript:Warning: CreateSession - Invalid or uninitialized OnlineSubsystem
LogScript:Warning: CreateSession - Cannot map local player to unique net ID

What is wrong?

You should post this in section C++ OR download the “Multiplayer Shootout” Sample in the Epic Launcher Tutorial tab.
regards

I am having the same problem. Have you fixed yours since then? If so, how did you do it?

multiplayer shootout doesn’t work either if I try to join from Android to PC