title: Identification of clients
body: <p>I have a server to which multiple clients are connected. I want to identify what is happening with each client. For this, I need some kind of identification for a particular client. </p>
  
  <pre><code>TcpClient tcpClient = (TcpClient)client;
  
   logger.DebugFormat("Connection obtained with a client {0} {1} {2} ", client.Connected, client.Client.LocalEndPoint,client.Client.RemoteEndPoint);
  </code></pre>
  
  <p>But I need a simple integer number which can be assigned to a client for its identification. And that number increments for every client connected and thus I can identify which client is acting through that number. How can I proceed with this?</p>