title: "Can´t open socket or connection refused" with .NET
body: <p>Im getting a connection refused when I try to send some data to my server app using netcat.</p>
  
  <p>server side:</p>
  
  <pre><code>IPAddress ip;
  ip = Dns.GetHostEntry("localhost").AddressList[0];
  IPEndPoint ipFinal = new IPEndPoint(ip, 12345);
  Socket socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
  socket.Bind(ipFinal);
  socket.Listen(100);
  Socket handler = socket.Accept(); ------&gt; it stops here......nothing happens
  </code></pre>