static void Main(string[] args) { TcpListener servidorSocket = new TcpListener(8080); TcpClient cliente = default(TcpClient); //Jugador jugador = new Jugador(); int canCliente = 0; servidorSocket.Start(); Console.WriteLine(" >> " + "Servidor Iniciado"); while (true) { canCliente += 1; cliente = servidorSocket.AcceptTcpClient(); Console.WriteLine("Cliente: " + canCliente + " Conectado."); Servidor servidor = new Servidor(); servidor.InicioCliente(cliente, Convert.ToString(canCliente)); } }