can't connect to server with Network.connect...

I opened server with,
Network.InitializeServer(32,25000,false);

and connect to myself with,
NetworkConnectionError err= Network.Connect(“127.0.0.1”,25000);
the return message was “noError”.
But,no event handler,

void OnConnectedToServer() {

}

void OnFailedToConnect(NetworkConnectionError error) {

}
none of above two got called after I connect to the server.
And Network.peerType was Disconnected.
Actually,it’s not connected.

Why? Can anyone explain me what?
If I try Network.TestConnection();
the returned message was
Undetermineded.
Plz,anyone help me.
I want to make a connection,plz help me.

regard!

To connect to your server, simply use the Network.Connect, as below:

if(GUILayout.Button(“Connect”))
{
Network.Connect(“127.0.0.1”,25000);
}

I’ve ever used this, and it ever works… Try with this without the NetworkConnectionError and it will works…