Heres the data arrival sub on server:
VB Code:
  1. Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
  2. Dim strData As String
  3.  
  4. Winsock1(Index).GetData strData 'get the data
  5.  
  6. If Left(strData, 4) = "MSG " Then 'if the first part of the data says MSG
  7.     MsgBox Split(strData, ":")(0) & ": " & Split(strData, ":")(1), vbInformation, "Message From Master" 'Show msgbox for example    Chris: HEY
  8. End If
  9.  
  10. End Sub

And in the client...
VB Code:
  1. Private Sub cmdSend_Click()
  2. Dim Data as String
  3. Data = "MSG " & txtNick.Text & ": " & txtMessage.Text
  4. Winsock.SendData Data
  5. End Sub