Network.Connect return NoError also if i not start the server!

Hi! i want to check if the client connect correcly to the server with

var _error = Network.Connect(serverIP,4321);
yield _error;

Debug.Log(_error);

but also if i not start the error i ge NoError but after 4-5 seconds i get Connection to server… failed. (Like i want) but only in the console… i want to show the error in the game, but i get always NoError! Why?

I am also wondering why Network.Connect never returns an error. What is the proper way to check if your connection to a server failed?

Unity Documentation is your friend.

Do some researching in those 3 links, they should be able to explain everything your asking. Especially the 3rd link.