title: C# MSWinsock Library Sockets - Can't connect
body: <p>I'm creating a C# app with MSWinsock Library Sockets. I setup everything correct (I'm 80% sure) but everytime my shockwave/flash player says there's no connection.</p>
  
  <pre><code>class Program
  {
      static Winsock[] winsock;
      static int currentId;
  
      static void Main(string[] args)
      {
          winsock = new Winsock[10000];
  
          winsock[0] = new Winsock();
          winsock[0].Bind(1232, "127.0.0.1");
          winsock[0].Listen();
          winsock[0].ConnectionRequest += new DMSWinsockControlEvents_ConnectionRequestEventHandler(Program_ConnectionRequest);
  
          currentId = 0;
  
          Console.WriteLine("MSWinsock server online, port {0}!", winsock[0].LocalPort);
  
          while (true) Console.ReadLine();
      }
  
      static void Program_ConnectionRequest(int requestID)
      {
          winsock[currentId] = winsock[0];
          winsock[currentId].Accept(requestID);
  
          Console.WriteLine("New connection from {0}!", winsock[currentId].RemoteHost);
  
          currentId++;
      }
  }
  </code></pre>
  
  <p>This method is like I did it in VB6. I don't want to use System.Net.Sockets since I want to use Winsock (for change).</p>
  
  <p>What am I doing wrong? I'm curious why it says it can't connect to IP 127.0.0.1 and port 1232.</p>