diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 0a90fb565..fb7d24008 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -49,17 +49,17 @@ internal void SetHandlers(NetworkConnection conn) conn.SetHandlers(handlers); } - public void Connect(string serverIp) + public void Connect(string ip) { PrepareForConnect(); - if (LogFilter.Debug) { Debug.Log("Client Connect: " + serverIp); } + if (LogFilter.Debug) { Debug.Log("Client Connect: " + ip); } - string hostnameOrIp = serverIp; + string hostnameOrIp = ip; this.serverIp = hostnameOrIp; connectState = ConnectState.Connecting; - NetworkManager.singleton.transport.ClientConnect(serverIp); + NetworkManager.singleton.transport.ClientConnect(ip); // setup all the handlers connection = new NetworkConnection(this.serverIp, clientId, 0);