I’m attempting to use the vanilla UE4 3rd Person C++ Template project to test multiplayer connectivity. I’ve followed the Blueprint scripting tutorial videos, and it appears that the 3rd Person Template is more or less ready to accept multiplayer connections out-of-the-box. Sure enough, I can setup 2 players locally when testing via the editor, but when attempting to have a ‘real’ multiplayer session users are unable to connect.
Checking the Output Log shows that other players are able to connect to my listen server instance, and even appear momentarily on the server-side, but then disappear. The following (incredibly vague) error is logged:
LogNet: Login request: /Game/Maps/Example_Map userId: Invalid
To setup connections I’m using the following console command:
And having users connect via:
It makes no difference whether these commands are entered in-game, or via shortcuts and command line arguments. The results are the same. I’m running a Mac build as the listen server, and the test user is connecting via Windows, although I’m fairly certain this shouldn’t make a difference.
In summary: using the vanilla 3rd Person Template with no modifications I’m unable to host multiplayer games over the Internet. Users connect and appear for a brief second before disappearing, with a log on the server reading that their userId was invalid.