|
-
May 5th, 2003, 07:42 PM
#1
Thread Starter
Junior Member
Stepping through IP's
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|