You may not be connected when initializing security layer.

Hello! I use my computer to test my builds. I make one build be the server and the editor to be the client. The build (server) disconnects and the editor disconnects with it. After that, I make a server with the editor and it says ‘You may not be connected when initializing security layer.’ It really bugs me. Is it because I’m using only one computer?

P.S.: I used the same IP and port for the two times I’ve created the server. I’m using Unity’s built-in networking (Network.Connect(); and Network.InitializeSecurity(); and Network.InitializeServer():wink:

Are you sure that you call “Network.InitializeSecurity” before you call “Network.InitializeServer” or “Network.Connect”? Also are you sure that you’re disconnected? You can check Network-peerType if you’re Disconnected.