Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Setting up multiple sessions on a LAN at once

We are looking for some hints or ideas on how to solve an issue of getting 20 machines on a LAN to randomly pair up with another machine on the LAN at roughly the same time. We're using Blueprints, by the way)

This is part of a University research project that involves anywhere from 4-20 people in a room, randomly connect to another person in the room so they can complete a level together, but not know who it is (kinda like Journey for the PS3) We thought about 'pre-connecting' them all, by setting them up before the participants arrive, but unfortunately there will also be other software being run on the machines (laptops) for the experiment and we can't have an Unreal app running in the background while that happens (it's also a battery killer). So basically, as part of the experiment protocol, they will all be starting the app at the same time (give or take a few seconds).

Our plan, then, is to have half of the people in the room run an app that creates a session, and the other half connect to one of those sessions.

So far we've tried the following: We have two builds, which differ only in one hard coded variable (isHost) -The 'Host' build (isHost - True), when started, immediately creates a LAN session, chooses the level, and waits. -The 'Client' build (isHost - False), when started, waits 10 seconds (to allow all the hosts to create their sessions), then runs the 'Find Sessions' function. It then looks through the array of sessions found, looking for a session with only one player connected. When it finds one, it joins the session.

This works, but unfortunately we sometimes get two clients and one host in a single session. It's like there are two clients joining at the same time. We tried limiting the number of 'public connections' to 2 (one for host, one for client) but it doesn't seem to help. When we tried 1 public connection, it wouldn't join at all. (Does anyone know, as an aside, if the public connection parameter is supposed to include room for the 'creator' of the session... we can't find any documentation to indicate yes or no?)

Anyway, does anyone have any ideas on how to solve our issue?

Thanks in advance.

Product Version: UE 4.16
more ▼

asked Jan 21 '18 at 11:31 AM in Blueprint Scripting

avatar image

15 2 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question