We have a sensor on our local network that is sending a data telegram using UDP Broadcast. How do we use Winsock to capture these messages.
The Port number that the data is being sent on is 42567.
I tried the following code
WinSockControl.Protocol = sckUDPProtocol
WinSockControl.RemotePort = 42567
WinSockControl.Bind
When stepping through this code in the IDE it accepts all these commands however it ver triggers the WinSockControl.DataArrival.
Can anyone tell me what I am doing wrong. I assumed that as the data is being broadcast around my subnet all I need to do is listen.
Thank You