# \[4.14\] ServerTravel with more than the Server doesn't work in PIE

**URL:** <https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392>\
**Category:** Multiplayer & Networking\
**Tags:** play-in-editor, bug, server-travel, unreal-engine, Multiplayer, Blueprint, question\
**Created:** [November 15, 2016, 8:01pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392 "2016-11-15T20:01:03Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [November 15, 2016, 8:01pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/1 "2016-11-15T20:01:03Z")

</div>

**This is not PREVIEW anymore, it is release version of 4.14!**

Hey there!

I updated my Marketplace Project from 4.13 to 4.14.

Following stuff happens in PIE! Remember, starting Multiplayer in PIE connects the Server and Clients already! Even in the MainMenu!

* * *

After starting the project with one Listen Server and one Client, I host a new “Server” with the Listen Server (kicks the Client of course due to PIE initial connection, but that’s totally ok here). Then I connect with the Client to the Server, which ends up in a Lobby. The Server then presses “Start Round”, which will result in a ServerTravel call.

This just loads for ever and prints this into the Output Log:

> [2016.11.15-19.49.24:248][760]Cmd: ServerTravel GamePlayLevel2?game=“Team-based”  
> [2016.11.15-19.49.24:315][760]LogPackageName: SearchForPackageOnDisk took 0.067s to resolve GamePlayLevel2.

> [2016.11.15-19.49.24:315][760]LogGameMode: Not traveling because of network error

The important part is the last line. I checked out the Source for 4.14 and this seems to be called when “CanServerTravel” is called and the MatchState is set to “Aborted”. But I have no idea why this would be the case…

I started the Game TWO times (so two instances) over “uproject file → Launch Game” and there it Server Travels correctly.

So this might be a PIE bug.

I don’t have tested it in an empty project, because that’s way too much work and I don’t have time for that atm.

If you want to reproduce this, try this:

- Empty Project
- Create a MainMenu Level
- Create a Lobby Level
- Create a GamePlay Level
- All MainMenu doesn’t have a GameMode, Lobby and GamePlay level each have their own. Both are NOT set to Seamless Travel!
- Start with 2 Players (no dedicated Server) in the MainMenu Level
- Let the Server Window start a Session and open the Lobby Level (?listen AND Create Session node!)
- Let the Client connect to that Session
- When Client connected, let the Server ServerTravel to the GamePlay Level

This should result in the same error. If not, then it could still be my project, although, as already said, it works outside of PIE and it only started in 4.14!

If you want, you can also have my project via Private Message on the Forum (only Staff of course, as this is a Marketplace Project).

Cheers,

eXi

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [November 19, 2016, 1:17pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/2 "2016-11-19T13:17:32Z")

</div>

Ok, I have some new information:

This happens, because the MatchState is set to “Aborted”.  
When trying to ServerTravel, it checks the MatchState and prints the error, mentioned in the original post above, while not performing the ServerTravel.

Now the question is: Why does it change the MatchState to “Aborted” and when does it do that, compared to when not.

If I start the Game in PIE (in the MainMenu) with only one Player, then host a Game (OpenLevel to the Lobby), it does NOT abort the Match.

If I start the Game in PIE (in the MainMenu) with more than one Player, then host a Game (OpenLevel to the Lobby) with the Server Window, it DOES abort the Match.

Why is that important? If you start a Game in UE4 PIE with 2+ Players, they will initially be connected. This means they are already connected in the MainMenu. If I now host with the Server Player (no dedicated server!), the Clients loose connection. That is totally fine and worked in 4.12. They will just get an error message about loosing connection and stay in the MainMenu.

They can also freely reconnect to the Server after opening the Lobby.

If I start the Game as Standalone with 1 or more Players (rightclick uproject file - \> Launch Game) it also does NOT abort the Match.

So I have the feeling that the initial connection in the PIE, combined with opening a new Level as a Listen Server with the original Listen Server from the initial connection, causes the Server to abort the Match.

I don’t know why though. Could someone, who touched the GameMode + MatchState stuff from 4.13 to 4.14 please think about this problem and check what’s going wrong?

I can’t test the Game in PIE anymore!

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [November 19, 2016, 1:27pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/3 "2016-11-19T13:27:31Z")

</div>

Yo, so why is this a thing in 4.14:

```
void AGameMode::HandleDisconnect(UWorld* InWorld, UNetDriver* NetDriver)
{
	AbortMatch();
}

```

And why is this being called in a GameMode that should already be new and fresh and not handle disconnected from previous ListenServer GameModes?

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [November 19, 2016, 1:51pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/4 "2016-11-19T13:51:39Z")

</div>

Ok, while the original problem still exists, I found that I can actually deactivate the initial connection in the advanced settings:

[http://puu.sh/snpOR/b6c6b49a86.png](http://puu.sh/snpOR/b6c6b49a86.png)

This solves my problem for now, but someone should still look into this MatchState Abort thing.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 21, 2016, 8:06pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/5 "2016-11-21T20:06:03Z")

</div>

Hey eXi,

I’m glad you were able to workaround it, but I’d still like to look into the MatchState issue as you mentioned. I’m going to spend some time on this, but if you could also provide your project as a reference that would be helpful as well. You can PM me a download link to Dropbox or Google Drive through the forums: [https://forums.unrealengine.com/member.php?160394-Sean-Flint](https://forums.unrealengine.com/member.php?160394-Sean-Flint)

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [November 22, 2016, 2:01am UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/6 "2016-11-22T02:01:51Z")

</div>

Sure, gonna PM you my project. Instructions are in the PM then.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 28, 2016, 2:48pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/7 "2016-11-28T14:48:36Z")

</div>

Hey eXi,

Quick question: Are you using any other 3rd party plugins while working on your project?

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [November 28, 2016, 3:16pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/8 "2016-11-28T15:16:07Z")

</div>

Nope, Marketplace projects are not allowed to have plugins.

Buyers of my project already reported the same issue.  
Sadly the “Auto Connect to server” bool is saved in the saved folder of the project and we do not submit that to the Marketplace. So the buyers need to change it themselves.

A bit annoying. Hope this gets fixed soon.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [December 15, 2016, 7:33pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/9 "2016-12-15T19:33:15Z")

</div>

Hey eXi,

After some investigation of your project, I wasn’t able to figure out exactly why you were experiencing the MatchState issue. Since you were able to determine the way to fix your issue, I’m going to mark this topic as resolved. I’ll discuss the Match State Abort issue with the developers, however, to see if there is something that needs to be changed.

Thanks for all your information

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [December 15, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/10 "2016-12-15T19:42:36Z")

</div>

But you were able to reproduce it at least, or?

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [December 15, 2016, 7:47pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/11 "2016-12-15T19:47:26Z")

</div>

I was able to reproduce it. I’m going to be discussing the issue with our developers soon and I’ll get back to you with more info as soon as I have any

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [December 15, 2016, 7:48pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/12 "2016-12-15T19:48:42Z")

</div>

Alright, thanks for your time Sean!

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [December 27, 2016, 10:00pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/13 "2016-12-27T22:00:33Z")

</div>

Hello,

I’m facing the same issue on 4.14.1

Everything works fine when packaged and tested with two instances, but the PIE won’t let me test with two players. I don’t know if the MatchState aborted though, but i’m getting the same error as eXi in the log :

> LogGameMode: Not traveling because of  
> network error

eXi : Where do you find that workaround option you mentioned ? “Auto Connect to Server” ?

Ps: maybe it’s worth mentioning that I migrated my project from 4.10.4 to 4.14.1

PIE was working perfectly fine on 4.10.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [December 27, 2016, 10:08pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/14 "2016-12-27T22:08:09Z")

</div>

Next to the Play Button in the Editor, you have a drop down menu.  
Click on “Advanced Settings” at the bottom. In the new Window, scroll down to the “Multiplayer Options” tab. There you should find that boolean.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [December 27, 2016, 10:26pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/15 "2016-12-27T22:26:31Z")

</div>

Excellent that did the trick! Thank you eXi.

Now that explains a couple of things. I’ve checked the MatchState and it goes through WaitingToStart, InProgress, Aborted almost immediately.

Also, with the Auto-Connect Checked, the client1 always gets a **Network Failure Connection Lost** , whenever the Server OPEN a new map (says to create a lobby).

When Unchecked, the Network Error doesn’t occur (makes sense, it’s no longer connected by default on PIE startup) AND the MatchState doesn’t get Aborted.

Now, I don’t know why a network failure on a client would abort the match, but at least we are not blocked.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [December 27, 2016, 10:34pm UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/16 "2016-12-27T22:34:57Z")

</div>

That’s the main issue: The MatchState of a new Match should not get affected by it. And it never got affected by it in previous Engine Versions.  
The AutoConnect boolean exist since a few Engine Versions, but I never actually used it, as it resets if you remove the saved folder.  
Seems like it’s not saved in the config folder.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [December 28, 2016, 12:01am UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/17 "2016-12-28T00:01:49Z")

</div>

I hope it will be fixed soon though, it’s quite annoying to have to check/uncheck whenever we need to test full connection flow or in a map directly.

---

<div class="post-metadata">

**Author:** ![bazilio\_113](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bazilio\_113](https://forums.unrealengine.com/u/bazilio_113)\
**Post date:** [June 3, 2024, 8:43am UTC](https://forums.unrealengine.com/t/4-14-servertravel-with-more-than-the-server-doesnt-work-in-pie/376392/18 "2024-06-03T08:43:58Z")

</div>

Bug still present in 2024 (ue version 5.4.1), lol, seems part of greater problem with server-client communication in editor.

> [@4.7.6 Joining Session Success Does Nothing - BP Networking](https://forums.unrealengine.com/t/4-7-6-joining-session-success-does-nothing-bp-networking/318128):
>
> Hello everybody, I’ve been trying to get the networking working over LAN for some time now, I used to have the server travel/Listen stuff going on but I wanted a more robust system so I started using the session nodes introduced in 4.6. I’ve had multiple problems that I fixed using ‘[OnlineSubsystem] DefaultPlatformService=Null’ and all sort of tricks up until now where everything works fine up until I try to join a session. The system that I have right no: -Hosts perfectly -Finds sessions ju…

> [@Server Error: TravelFailure: ClientTravelFailure, Reason for Failure: 'Servers can't open network URLs'](https://forums.unrealengine.com/t/server-error-travelfailure-clienttravelfailure-reason-for-failure-servers-cant-open-network-urls/418639/17):
>
> Doing a clean build worked.However when clicking the project.exe I dont get the Join succeeded message I get all the way to here: [Screenshot - 6a9624348f3a982ace9322c44173a758 - Gyazo](https://gyazo.com/6a9624348f3a982ace9322c44173a758) which is good No error this time but its just a black screen. They did have me delete the player start capsule and set the default map to the testLevel. The thing is, when i click I hear the actions of my game, but see nothing. Just a black screen and no server log for a successful login. Hmm

> [@Client does not transition to in progress after seamless travel on dedicated server](https://forums.unrealengine.com/t/client-does-not-transition-to-in-progress-after-seamless-travel-on-dedicated-server/542839):
>
> Hello, I am using the UE 5.0 Pre-release, and I am getting some bad results when trying to seamless travel to a new map on a dedicated server. The server starts a lobby map where characters can be selected, and waits for connections. The client flow is: Start game at main menu Press widget button to connect to dedicated server (open level by name 127.0.0.1) Connect to server, select character and press ready. The server sees all players are ready and tries to seamless travel to a new map. …

> [@Join session did not load the server map](https://forums.unrealengine.com/t/join-session-did-not-load-the-server-map/158260/2):
>
> If you are playing from the editor, make sure to set the play mode to “Standalone Game”. I suggest, that you go into Editor Preferences, and change a few things there as well. Set “Run Under One Process” to false, and in the Additional Launch Parameters field, type “-log”. About your issue, after you’ve joined a session, you can call [UGameInstance::ClientTravelToSession](https://docs.unrealengine.com/en-US/API/Runtime/Engine/Engine/UGameInstance/ClientTravelToSession/index.html). This will take care of traveling the player into the session.

Dedicated server and client has multiple problems in editor.  
Basicly, y still will be kicked out in pie if you connect to server.  
Join session not in pie but standalone or open level, open command, result to “do nothing” if connect from client side. Works normaly only in packed version.

The only way to test server-client now if y have login (lobby) menu seems go to  
Advanced settings-\>launch separate server  
Net mode-\>play as standalone  
You will be still kicked out from server first time, failed to join host, but second try will result you to connect it eventually.  
Before doing this y need to force server to change login/lobby menu map in blueprients (another bug) on begin play for example. (details below)

or

Net mode-\>play as client  
launch standalone  
and open level on server itself (like 127.0.0.1:17777).

play as client still result to join server session right after start (it’s intended behaviour i guess?), but there is no tick in advanced settings to disable initial connection now and cause of bug below no correct map travel.

Also seems there is another bug: server default map doesn’t work in editor, found out experimental way during tests, it basicly opens editor map when you launch it on server (our login/lobby map), not server map itself.

Peoples tried to bypass this bug in code to force travel, but seems this workaround doesn’t work too.  
[UGameInstance::ClientTravelToSession](https://docs.unrealengine.com/en-US/API/Runtime/Engine/Engine/UGameInstance/ClientTravelToSession/index.html)  
You need to call **GameSession** on client and use player controller with id 0 with this function after server launches, but it always returns false.
