connect to server using networkmanager.StartClient

Hello,

I am triing to create a multiplayer game but now, i am stuck. I don’t know what i am doing wrong, here is my code to create server and connect:

public void CustomGameCreate()
    {
        NetworkLobbyManager manager = GameObject.Find("NetworkManager").GetComponent<NetworkLobbyManager>();
        manager.networkAddress = "localhost";
        manager.networkPort = 4444;
        manager.StartHost();
}
public void JoinGame(string ip)
    {
        NetworkLobbyManager manager = GameObject.Find("NetworkManager").GetComponent<NetworkLobbyManager>();
        manager.networkAddress = info;
        manager.networkPort = 4444;
        Network.Connect(ip, 4444);
        manager.StartClient();
}

i get this error on the client when he join the server:
The connection request to ip: port failed. Are you sure the server can be connected to?

i have tried to remove the Network.Connect but if i do that, the client is created on the server but the player don’t receive server information and can’t run clientRPC.

Sorry for my bad english.

Thanks for reading.

Network.Connect is the issue here: I think that’s a part of the Legacy networking.

Thanks, it was that.

I do have a similar prob. i placed correct network address and port, but the server won’t load. at all. lil gitch. glitch*