OnPlayerConnected and OnPlayerDisconnected are never called

okay so im learning how to make multilayer at the moment and these two are never called.
this is what i have for both of them at the moment just to get them to work but they are never called ever.

void OnPlayerConnected(NetworkPlayer player) {
		Debug.Log ("player connected");
	}

before you ask if they are even being connected yes they are. i know this because i already have the ability to move players around and see them on the other computer. my computers are connected and are sending messages to each other but these are never called and i don’t know why.

using C# by the way.

just noticed that my OnServerInitialized() doesn’t run either.

Well, those 3 methods are only called on the server. Are you sure you’re testing on the server an not on the client? On the client you will get the OnConnectedToServer message when connecting.

Look at the messages at the bottom of this page. The description tells you on which side the message is called. If nothing is mentioned it’s usually called on both server and client.