In UE5, if you host your server in the editor, and then try to connect with a client, the client crashes, some weird logs about syncing.
Also, I can’t get any UFUNCTION(exec) custom console commands in game instance to work when starting the editor through the command line. They work fine in the editor, but when trying to host the listen server from the command line to avoid the crashing issue with “Host”, I just get an error log saying the command is missing. UE5 might need extra syntax around these ufunction calls or something now, not sure what’s going on.
As a workaround:
I found using the “ServerTravel” builtin console command to work well enough to test all of this.
Syntax: ServerTravel {relative path to the new level from the currently loaded level}?listen
My lobby level was in the same folder as the level I wanted to load (my level is named Sandbox). So the command is:
ServerTravel Sandbox?listen