Need help for UNET

Hello! please tell me whether it is possible? (NM - NetworkManager)
Create multiplayer locations:

see 1 screenshot


I run a server:

  1. Load offline scene
  2. NM checkbox DontDestroyOnLoad off
  3. Click start button
    SceneManager.LoadScene(“test1”);
    NetworkManag.networkPort=7777;
    NetworkManag.StartServer();

I get the server to the port of 7777, location test1

I run a second unity, and click start button2, repeat on port 7776 and the other scene (NM checkbox DontDestroyOnLoad off)
SceneManager.LoadScene(“test2”);
NetworkManag.networkPort=7776;
NetworkManag.StartServer();

test1 and test2 have their own NM

Disabled objects on the server I enabled command:
NetworkServer.SpawnObjects();

Total:
1 server - test 1 - 7777 port
2 server - test 2 - 7776 port

When a client connects, I get an error “The prefab ‘Player_Prefab’ has multiple NetworkIdentity components. There can only be one NetworkIdentity on a prefab, and it must be on the root object.”

how to connect a client to many servers?

I run a client:

  1. Load offline scene
  2. NM checkbox DontDestroyOnLoad off
  3. Click start client
    NetworkManag.StartClient(); (default 7777 port)

how to change the scene test1 after the connection to the test2

how correctly? (see screenshot 2)


I need connect 1 client to many server… client settings saved in MySQL Data Base
P.S. Sry for my bad En

There can be only one NetworkManger, and a client can only make 1 connection to 1 server at a time. I had done a prototype where multiple servers connected to each other, and then passed clients between them to allow for “seamless” large scale worlds. Very tricky and I never really got it working right.

Good luck!