How to setup EOS and LAN (with PIE considerations).

What is the recommended way to setup EOS on a project, where we want devs to be able to test things in Editor with something like a LAN connection. But also be able to use EOS for Standalone.

We really want to be able to test things in editor as much as possible (to save iteration time), so being able to join each other (while on the same CLs) while in editor would be amazing.

Let me know if I’m being too hopeful with the feature set, but man this would be great.

EOS P2P won’t work in PIE as the player is logged in too late. You can have SocketSubsystemEOS fallback to using IP over EOS P2P. There’s a few different ways of doing this, probably the easiest is to append ?bIsLanMatch to your TravelURL when running in PIE. Something like this should work:

// When starting a listen server:
  FString TravelURL = MapName;
  if (GetWorld()->IsPlayInEditor())
  {
      TravelURL += TEXT("?bIsLanMatch");
  }

I haven’t had the chance of testing this. Mind testing and letting us know if it works well? If it does, I’ll create a KB article on this. This isn’t the first time we get this question!

Thanks,

Seb

Yes that’s correct!

Can you share full logs?

Hey, sorry for the delay I was out on vacation. Can you create a private discussion and share a full set of logs? Please let me know the case number here once you’ve raised it. Thanks!

Oh cool, was thinking about doing something along those lines. Appreciate the response, let me play with it and I’ll respond back with any findings.

Does this also assume the following-ish setup in the DefaultEngine.ini

[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions= DefName="GameNetDriver",DriverClassName="/Script/SocketSubsystemEOS.NetDriverEOSBase",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
         +NetDriverDefinitions=(DefName="DemoNetDriver",DriverClassName="/Script/Engine.DemoNetDriver",DriverClassNameFallback="/Script/Engine.DemoNetDriver")

I’m assuming when you do something like ?bIsLanMatch, it’ll use the fall back IPNetDriver?

With something like the above setup in the DefaultEngine.ini, and trying to run PIE as listen server, my PIE session hits this ensure:

ensureMsgf(EnableListenServer(true, ListenPort), TEXT("Starting Listen Server for Play in Editor failed!"));

Is that to be expected? Is there something in some setting file I don’t have configured correctly?

I can, but I’ll need to redact some info, are there some log specific channels I can filter that would be useful?