[4.7.2]Multiplayer Blueprint Example can't connect between two computers

Hi, there:
This example is totally workable when host and player both run on a same Windows OS( it’s not working when run on Mac OS ).
And then I run this example via UnrealEditor on two computers to test session ability.
Of course one computer is as a host, and other find session, it’s working.
But it shows “Error: Failed to Travel. Load Map Failure”

Have you port forwarded your router?

I don’t understand what is “port forwarded”, can you explain this more detail?
Or explain how to do this?
Thanks.

Hi ZenTechEntertainment,

When you try to connect between two computers, are you playing through editor? Are you Launching game, or running Standalone? Or did you package game?

Hi, I playing through editor.

Hi ZenTechEntertainment,

We don’t expect network play to work through PIE. To test multiplayer features on separate machines, you’ll need to package game and make sure both systems are running same package. Hope that helps!

Would running game in standalone mode from editor work? Or does it have to be packaged? That’s a pretty heavy step to require!

See this thread for a slightly longer explanation.

Short answer is that way PIE saves just in time isn’t compatible with networking model that we use. Both machines need to agree/share common content in order to effectively communicate. PIE worlds are saves that other computer couldn’t possibly have.

That being said, if you exit editor and share content between two machines, you can certainly run in non packaged mode during development.

One machine does this

ue4editor mygamename mapname?listen -game -log 

while client does

ue4editor mygamename ipaddressofserver -game -log

if you want to run dedicated server, replace -game in first instance with -server.

In this case, both machines share all known content and network negotiation won’t fail.

Hope this helps.

Hey bpeck,

See Josh’s answer above for a way to do it without packaging.

What do you mean exactly by “share content between machines?” We’re using git for source control, is there some further step here to make this work?

Simply make sure that you have exact same project on both machines, and that should be all you need.

Hello Crzyhomer,

Where should I place these lines in blueprint in order to have a connection form editor in two machines?

Regards,