Fix cannot connect to server in multiplayer mode for the first time opening app