title: How To Read Data using Ip Address
body: <p>I am doing punch card reader programming..</p>
  
  <p>Establish connection with BioAccess V2 Device...</p>
  
  <p>socket successdully connected but data can't read...</p>
  
  <p>so how to read data ?</p>
  
  <pre><code>Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream,ProtocolType.Tcp);  
  var ipaddress = IPAddress.Parse("192.168.000.111");  
  IPAddress add = new IPAddress(ipaddress.GetAddressBytes());    
  EndPoint ep = new IPEndPoint(add, 5005);  
  sock.Connect(ep);  
  if(sock.connected)
  {
  
  }
  </code></pre>
  
  <p>now what i have to do in IF BLOCK to read data ?</p>