This amkes no sence to me but on the 2nd connection i get the "ivalid operation at current state" error which means the socket is in use,

VB Code:
  1. Dim x As Long ' counter
  2. If Winsock.UBound < 1 Then 'this is our first connection so accept it
  3.        Load Winsock(Winsock.UBound + 1)
  4.        Winsock(Winsock.UBound).Accept requestID
  5. End If
  6.  
  7. For x = 1 To Winsock.UBound + 1 'loops through existing connections to amke sure we have none spare
  8.    If Winsock(x).State <> sckConnected Then
  9.           Winsock(x).Accept requestID '<<Error here!
  10.    Else
  11.    If x >= Winsock.UBound Then 'there si none spare so accept on new socket
  12.             Load Winsock(Winsock.UBound + 1)
  13.             Winsock(Winsock.UBound).Accept requestID
  14.             Exit Sub
  15.        End If
  16.    End If
  17. Next x

i cant understand maybe its a simple error?

PINO