Questions tagged [multicast]

Multicast refers to one-to-many network transmission options, where packets will be automatically propagated just to those nodes wishing to receive them. IP-based multicast is the common case, though other multicast implementations exist.

1621 questions
18
votes
4 answers

How to multicast using gen_udp in Erlang?

How do you use gen_udp in Erlang to do multicasting? I know its in the code, there is just no documentation behind it. Sending out data is obvious and simple. I was wondering on how to add memberships. Not only adding memberships at start-up, but…
Sargun Dhillon
  • 1,788
  • 2
  • 18
  • 24
18
votes
1 answer

Docker receiving multicast traffic

We have a dockerized server application that is doing auto-discovery of physical appliances on the network by listening for multicast packets on port 6969. So we need our docker container to be able to receive these packets from devices outside the…
DTI-Matt
  • 2,065
  • 9
  • 35
  • 60
17
votes
3 answers

Multicast on Android 2.2

Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service detection. There are many questions & answers from the Android 1.5->2.0 timeframe, including on stackOverflow, that indicate varying levels of success, and a…
Brent Chartrand
  • 546
  • 1
  • 4
  • 10
16
votes
8 answers

Receiving multiple multicast feeds on the same port - C, Linux

I have an application that is receiving data from multiple multicast sources on the same port. I am able to receive the data. However, I am trying to account for statistics of each group (i.e. msgs received, bytes received) and all the data is…
Gigi
  • 271
  • 1
  • 4
  • 5
16
votes
3 answers

Multicasting on the loopback device

I wish to send UDP multicast packets to loopback address and receive the same in other application. All tests done on fedora core 17 Linux. The idea is to receive a video stream via RTSP/HTTP or any other network protocol and multicast it on the…
Akhilesh Soni
  • 169
  • 1
  • 1
  • 3
15
votes
7 answers

What's the most efficient protocol for reliable multicast?

When a sender needs to multicast a relatively large volume of data (say several megabytes per second) in a reliable way over Ethernet to a modest number of receivers (say less than a dozen) on the same subnet, what is the most efficient protocol? By…
15
votes
1 answer

Is there any functional difference in using Socket or UdpClient for multicasting?

I am familiarizing myself with Multicasting and such. There are 2 primary examples used: Using Socket with Bind() UDPClient.JoinMulticastNetwork() One specifiying a LeaveMulticastGroup and another binding and Joining with no…
CybeX
  • 2,060
  • 3
  • 48
  • 115
15
votes
4 answers

Error "No such device" in call setsockopt when joining multicast group

I have a code in which send multicast datagrams. A critical piece of code: uint32_t port; int sockfd, err_ip; const uint32_t sizebuff = 65535 - (20 + 8); unsigned char *buff = (unsigned char *) malloc(sizebuff); struct sockaddr_in servaddr,…
Mephi_stofel
  • 355
  • 2
  • 6
  • 15
14
votes
4 answers

Multicast Support on Android in Hotspot/Tethering mode

I have a prototype Android app that is listening for multicast packets to 'discover' clients to communicate with. The socket set up is similar to this: InetAddress group = InetAddress.getByName("228.1.2.3"); MulticastSocket s = new…
Sarge
  • 141
  • 1
  • 4
14
votes
2 answers

How to set up a socket for UDP multicast with 2 network cards present?

I'm trying to get udp multicast data using sockets and c++ (c). I have a server with 2 network cards so I need to bind socket to specific interface. Currently I'm testing on another server that has only one network card. When I use INADDR_ANY I can…
stefanB
14
votes
4 answers

Is there a way to test multicast IP on same box?

If I want to test a set of multicast IP programs (sender/receiver) without having to set up the networking, can this be done on the same box? If so, what needs to be setup or done differently?
Andy Faibishenko
  • 631
  • 2
  • 7
  • 13
14
votes
6 answers

UDP multicast client does not see UDP multicast traffic generated by tcpreplay

I have two programs: server ... it generates UDP traffic on a chosen multicast listener ... it prints UDP traffic on a chosen multicast (it subscribes to a multicast and prints whatever it receives). When I run the server on…
Matej Košík
  • 141
  • 1
  • 1
  • 5
13
votes
2 answers

Property 'connect' does not exist on type 'Observable' | RXJS multicast

I have an Observable that produce the unicast value(individually for all observers). But when i am going to convert into multicast using RxJs multicast operators then it return the following error. Property 'connect' does not exist on type…
Sachin Kumar
  • 3,001
  • 1
  • 22
  • 47
13
votes
4 answers

Specifying what network interface an UDP multicast should go to in .NET

On a computer with both an active Wireless Card and a LAN-Port with a crossover cable hooked up to another machine running the same application, we need to send a UDP multicast over the LAN wire to the other computer. Using C# Sockets, Windows seems…
Markus Roth
  • 343
  • 2
  • 5
  • 12
13
votes
1 answer

What is the best way to implement device discovery on a LAN

I have little experience in network programming and I am writing a multi platform system which requires each device to be able to find other devices within the same LAN. I am looking for the right approach to do that, and hope that people here can…
NachoChip
  • 297
  • 4
  • 13