LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP Multicast

I am trying to send a message between to computers on a network using Multicast UDP. I receive no errors, but the message does not get to the receiver. I was able to get a regular UDP message between them, but not a multicast. I have the address set to a valid multicast address and I have the TTL set to higher than the number of hops. What could I be missing? Smiley Mad

0 Kudos
Message 1 of 15
(6,213 Views)

Hi Gleichman,

 

have you tried to achieve that task using the UDP multicast examples coming with LabVIEW?

Usually I start with them and then change them to fit my needs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 15
(6,202 Views)

Yes, I have tried the examples. Have you successfully used them between two different computers? They work fine for me on the same computer, but not remotely. I know the number of hops (1) between the two computers because they are on the same switch and just for fun I verified it with tracert.

0 Kudos
Message 3 of 15
(6,196 Views)

Hi Gleichman,

 

yes, the examples work for me (read/write on different computers, with several switches in between)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(6,192 Views)

First (and only) thought:

 

Is the UDP mutilcast propgated beyond the local subnet?

 

I seem to rember they were not routed.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 15
(6,190 Views)

Hi Gleichman,

 

Have you double checked your network and router firewall settings? It sounds like the router might not be passing the message on.  Also, is there a reason that you are using UDP specifically?

 

Regards,

Joe S.

0 Kudos
Message 6 of 15
(6,175 Views)

Both computers are on a simple Netgear switch, so I don't think that is the issue. My guess is that it is a firewall/IT "protection" problem. I plan on trying it tonight at home to see if I can get it to work off the corporate network.

 

The purpose for using multicast UDP was:

  1. Add the ability to share thermal chamber data between multiple systems using the same chamber. One server with many clients.
  2. A simple remote tester status monitoring system. Multiple servers with multiple clients.

I picked multicast UDP because of its ability to broadcast data without worry about who was receiving it.

 

- Alan

0 Kudos
Message 7 of 15
(6,169 Views)

I've decided to go a different route. I'm going to use regular UDP with a request/response architecture. I know that this method works, it looks to be more efficient, and I won't have to worry about number of hops. Thanks for everyones input.

 

- Alan

0 Kudos
Message 8 of 15
(6,156 Views)

Well, I've got the same problem.  Unfortunately, I must use multicast. 

 

I am using the multicast send example VI on one PC, and the multicast receive example VI on another.  The 2 PCs are directly connected with an Ethernet cable.  Wireshark running on the receive PC sees the multicast UDP packets, but the receive VI does not.  If I also run the send example on the receive PC, then all of a sudden the receive VI gets both the multicast packets from both senders. 

 

I have turned the firewall off on both machines.  One machine is XP, the other is Windows 7.  Any ideas? 

Similar experiments with Java do not exhibit this strange behavior.

0 Kudos
Message 9 of 15
(6,030 Views)

Hi bhouse,

 

The behavior you are describing is unusual. Are you running the same version of LabVIEW on both machines? Also, did you modify the multicast send and receive example VIs at all?

 

 

0 Kudos
Message 10 of 15
(6,011 Views)