title: System.Net.Sockets.SocketException
body: <pre><code>Encoding en = Encoding.GetEncoding("iso-8859-1"); // default encoding
  IPHostEntry IPhst = Dns.GetHostEntry(_Host);
  IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25);
  Socket s = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
  s.Connect(endPt);
  </code></pre>
  
  <p>Here am getting the error like:</p>
  
  <blockquote>
    <p>System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 202.88.253.162:25
       at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)" </p>
  </blockquote>
  
  <p>How i can solve this?</p>