Can't find a created session

Hi, there:
I’m practicing create/join/find sessions via C++ programming. Of course I reference the only example project ShooterGame a lot.

The server is dedicated.

Now I use the class OnlineSubsystemNull and can successfully create a session on a dedicated server, but can’t find it on localhost. It says finding session is successful but the number of sessions equals 0.
The attachment is my create/find code. Please have a peek.

Thanks.

I’m currently having the same problem, so I would like to bump this up. I’m not using C++, but I’m doing the same general thing with blueprints. Did you ever figure this out?

just to point up some possible reasons… or points to check out

Did you…

  1. add the onlinesubsystem to the defaultengine.ini
  2. add the project dependencies in the Project.Build.Cs

are you able to connect directly by ip / console commands?

  • open MapName?listen (for server)
  • open 127.0.0.1 (for client)

I have nearly the same code and it didn’t work for me either.
When working within the editor I always find 0 sessions.
But when I baked a development build it was suddenly finding the other sessions. Maybe there is a bug in the editor. Many networking related things work different in editor.

Hi,
UE4 baut bei PIE (PlayInEditor) schon eine Session auf.
aktuell 4.81 scheint da nen Bug im Editor zu sein, du kannst nur nen Server erstellen mit dem Server (das Editor Fenster bei 2 Fenstern).

UE4 opens a Session in PIE (PlayInEditor).
Currently in 4.81 it seems theres a bug, when opening a server on the client (second window) you have to create a server on the server (session in editor window not the exta window) to make it work

Still am and packaging a project isn’t fixing it

I have the same thing! Shipping build cannot find sessions (or maybe fails to create them in a findable way?)
But development build finds sessions just fine.