HI again,

I am using winsick and UDP.I need to send a message to a number of IP's one at a time. I am little confused as to how i can step through the IP's say from 192.168.1.1 to 192.168.1.30, and send data to each one in succession??

Would something like the following work:


---------------------------------------------------------------------
Dim i As Integer
Dim counter As Integer
Dim Trigger As String

counter = 1

For i = 1 to 20

RemoteHostIP = "192.168.1." & counter

Winsock1.SendData Trigger

counter= counter+1
i = i + 1
End

----------------------------------------------------------------------

Thanks

Chris