LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I send UDP packets to multiple IP addresses

Solved!
Go to solution

I can see the full broadcast in the UDP transmit function (IP set to FFFFFFFF) but I do not see how to send the same UDP packet to two or three multiple specified IP addresses.

Is that even possible?

Thanks

0 Kudos
Message 1 of 6
(7,865 Views)

Hi Pawel,

  
If I am understanding your question correctly, then yes it is possible and it is done using the UDP Multicast VI's. Here is a link to the help page on the UDP Multicast Open.vi.

 

Also, there are examples in LabVIEW example finder in the "labview»examples»comm»UDP" folder or you can find them by simply searching "UDP" in the LabVIEW example finder, the examples are "UDP Multicast Receiver.vi" and "UDP Multicast Sender.vi".

 

Best,

Jake B.

Message 2 of 6
(7,829 Views)

Multicast will work if the recipients are setup to listen for multicasts (e.g. if you write their code too or have other ways to configure ;)).

 

Alternatively, you could just use a FOR loop and sequentially send unicasts to an autoindexing array of a few IP addresses. What kind of data reates do you actually need? Is it just an occasional short message?

0 Kudos
Message 3 of 6
(7,820 Views)

Hi

 

I need large amount of data thus Multiocast.

 

Would the Multicast work with other (non-LabVIEW) udp receivers operating in a normal unitcast mode? Or all the networking receivers needs to operate in Multicast mode?

 

thanks

0 Kudos
Message 4 of 6
(7,812 Views)
Solution
Accepted by topic author pawel

@pawel wrote:

Would the Multicast work with other (non-LabVIEW) udp receivers operating in a normal unitcast mode? Or all the networking receivers needs to operate in Multicast mode?


Clients must join a multicast group in order for multicasting to work. This basically means you're telling the OS that you want to received traffic on a specific IP address (multicast groups are IP addresses in a specific range), and on a specific network interface.

0 Kudos
Message 5 of 6
(7,789 Views)

Thanks for the explanation.

0 Kudos
Message 6 of 6
(7,785 Views)