UDP Boradcast source IP address (1 liner easy if you know it!)
Posted on 2001-08-14
I am currently working on my app's socket security...
In a couple of servers I listen for UDP broadcasts to do a few different thingies... but I need to verify the source of the broadcast before acting on it.
WinBroadcast is the winsock control I am using...
I put a line where the comment in the code below is that read...
msgbox WinBroadcast.RemoteHost & vbcrlf & _
but these properties all came back as "" (null)
How can I tell the IP address of the broadcaster??
Thanks guys n gals....
Private Sub WinBroadcast_DataArrival(ByVal bytesTotal As Long)
Dim thestr As String
' Need code here to determine the source IP
Select Case thestr