LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Monitor IP address 255.255.255.255

Hi,

 

I am trying to monitor the DHCP discovery port using the CVI UDP tools. The port is on multicast address 0.0.0.0 (aka 255.255.255.255).

 

When I try the following;

 

status = UDPMulticastSubscribe (MDchanHandle, "0.0.0.0", NULL);

 

It gives me a runtime error telling me that this is not a valid multicast address.

 

What am I doing wrong?

 

Thanks

 

Andy

0 Kudos
Message 1 of 3
(4,833 Views)

According to the CVI help valid multicast addresses (Class D) range from 224.0.0.0 to 239.255.255.255.

0 Kudos
Message 2 of 3
(4,830 Views)

Hi,

 

I solved it. Basic mistake. 255.255.255.255 is a broadcast address not a multicast address so I just had to set up a UDP unicast channel on the correct port and it will monitor the broadcast data on that port number.

 

Regards

 

Andy

0 Kudos
Message 3 of 3
(4,823 Views)