Using multiple NetworkManager

i want to split code for server and client. so i want to use 2 NetworkManagers; ServerNetworkManager and ClientNetworkManager. i use them as prefab and Instantiate one of them. on editor i need both so i instantiate both. only the one with starthost called works. this method is at ServerNetworkManager. OnClientConnect at ClientNetworkManager is not called.when i move this method to ServerNetworkManager it works. i think this is because it behaves like singleton. how can i make both managers to work?

Far as I know Unity doesn’t support that, NetworkManager is a singleton, you may have only 1 running at any given time.
You might be able to create another NetworkManager by copying the entire class into a new class using reflection, but it’s just a thought, no idea if it’ll work.