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"

Change session host on the fly

The only thing I could find about this was a 3 month old question that was unanswered (https://answers.unrealengine.com/questions/277187/change-session-host-during-session-if-host-disconn.html)

Also, my question is slightly different. I'm wanting to have it change hosts whenever I tell it to, such as if a client would make a better host than the current one, or just simply disconnects.

I can't seem to find any functions like that. I'm looking for a seamless transition so the players won't know the host disconnected, or I told the game to switch hosts. I want the map to continue as they were.

I'm posting this in the C++ section, because it looks like you can't even name a session in BP, but I'm open to all methods.

Product Version: UE 4.9
more ▼

asked Nov 03 '15 at 05:54 PM in C++ Programming

avatar image

56 2 5 9

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

1 answer: sort voted first

UE4 does not support that, what you asking for part of what is known as "P2P" and it is yet to be implemented and it was on road map for long time now:


But not sure if it will do what you want to do,

I think it is possible to create less-seamless solutions, by createing new host and trying to restore as much data as possible from what client had, kind of like old CoD on consoles or Uncharted did when host left..

more ▼

answered Nov 05 '15 at 04:13 AM

avatar image

37.2k 936 172 1116

avatar image AJ-Cixelsyd Nov 05 '15 at 03:28 PM

Restoring data that way, wouldn't I have to have all connected clients on a load screen until it was sorted? I can't just have UE4 change which client to replicate from?

avatar image joeGraf STAFF Nov 05 '15 at 05:16 PM

What you are talking about is called host migration. Yes, you'd need some kind of screen up while the clients migrate to the new host. Host migration requires a bunch of work to determine who can host. For instance, many clients cannot connect to other clients due to NAT type.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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