yeah, I found a few, but I still don't quite get it - can someone tell me whats wrong with this code?:
Private Sub Command1_Click()
Private Sub Form_Load()
Winsock1.Connect Text3.Text, 1234
Private Sub Winsock2_DataArrival(ByVal bytesTotal As Long)
wait do you have the server and client stuff altogether? whats the point of that theres no need to connect then lol.
Anyways split them up. And Winsock doesnt need 2 different names... you can have it the same throughout. I will give you basic code to connect to 1 client to 1 server.
Private Sub cmdConnect_Click()
Winsock.RemoteHost = "127.0.0.1" ' this is the Ip of the server 127.0.0.1 loops back to your own computer
Winsock.RemotePort = 8765 ' this is the port it must be the same as the server
Winsock.Connect ' connect!
Private Sub cmdSend_click()
Winsock.SendData Text1.Text ' sends the data in the textbox
Private Sub winsock_DataArrival(ByVal bytesTotal As Long)
Dim incomingData As String 'this stores the data we receive
Winsock.GetData incomingData ' this stores the data in the variable we set above
I will do server later I gotta go take a stat test here like right now.