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.
Questions tagged [multicast]
1621 questions
6
votes
2 answers
Multicast - no such device
I am trying to connect to a multicast group using the following piece of code:
int flag_on = 1; /* socket option flag */
struct sockaddr_in mc_addr; /* socket address structure */
char recv_str[MAX_LEN+1]; /* buffer to…

android.developer
- 365
- 3
- 8
- 18
6
votes
1 answer
Selecting a Multicast IP Address
I'm having trouble understanding how multicast addresses work.
First off, is it true that if I have N clients or peers working on separate networks, they all subscribe to the same multicast group, and this group allows any source to send messages,…

Josh G
- 14,068
- 7
- 62
- 74
6
votes
1 answer
lost packets only occur in the first run
I'm trying to improve the performance of my multicast application (in order to reduce its packet loss) which is working on a huge network
My experiments show that in the first run of the application there is some lost packets. But when I run the…

rezaebrh
- 424
- 2
- 6
- 19
6
votes
1 answer
Why are IP_TTL and IP_MULTICAST_TTL separate socket options?
When sending UDP multicast you can use IP_MULTICAST_TTL to set the TTL. But otherwise you would use IP_TTL. Why are these two different options in the eyes of setsockopt() and getsockopt()? Is there any situation in which setting them separately…

John Zwinck
- 239,568
- 38
- 324
- 436
6
votes
2 answers
What happens if I don't send IP_DROP_MEMBERSHIP before closing my socket?
I'm working on some code which joins a multicast group using an IGMP join
struct ip_mreq mreq;
inet_pton(AF_INET, group, &mreq.imr_multiaddr.s_addr);
mreq.imr_interface.s_addr = htonl(INADDR_ANY);
if (setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,…

Steve Lorimer
- 27,059
- 17
- 118
- 213
6
votes
2 answers
Any way to receive multicast packets on Android Emulator?
Android emulator does not support multicast currently however I need to test an application that needs multicast packets. I want to do it on Emulator.
Is there a way to receive multicast packets on Android Emulator? I am open to writing some code as…

Kumar Gaurav
- 729
- 3
- 9
- 21
6
votes
2 answers
Difference between INADDR_ANY in Linux and Windows socket programming
My Winsock Delphi application should listen on all network interfaces for multicast UDP/IP stream. It listened normally until I tried it on another PC with different network adapters' priority order.
Then I started to research problem and found on…

Paul
- 25,812
- 38
- 124
- 247
6
votes
0 answers
List all valid Ipv4Addr on host
I need to send the same multicast UDP packet on all available addresses on my host. I need to send to localhost/127.0.0.1 and 239.255.0.1. Rust's std lib has deprecated multicast behavior since version 1.2, and anyway, to get the specificity I need…

xrl
- 2,155
- 5
- 26
- 40
6
votes
2 answers
C listen to multicast on all interfaces, respond on same as recieved
I am trying to listen to multicast on all interfaces in system, but responds only on this on which I've received multicast packet.
What I've did is to create a socket for each of the interfaces and here the problems starts.
When I bind interface to…

Pax0r
- 2,324
- 2
- 31
- 49
6
votes
2 answers
Methods for implementing UDP multicast reliable
I am preparing for my university exam and one of the question last year was " how to make UDP multicast reliable " ( like tcp, retransmission of lost packets )
I thought about something like this :
Server send multicast using UDP
Every client send…

Laoni
- 61
- 1
- 2
6
votes
2 answers
Java UDP multicast, determine which group sent packet
I'm making an application where there is a certain thread (MulticastListenerThread) which has a MulticastSocket and is listening for UDP (datagram) packets sent to the multicast group the socket is listening too.
This works. I can join a multicast…
user4346741
6
votes
2 answers
Best tutorial for application multicasting?
I've recently become aware that there's a distinction between IP multicasting (which apparently doesn't work that well on the public internet) and application multicasting (which is apparently used in IRC and PSYC, per…

Jeremy Dunck
- 5,724
- 6
- 25
- 30
6
votes
1 answer
Dumping Avahi & Bonjour, DNS-SD Zone Files
I'm looking to make improvements to the Go library for mDNS: https://github.com/davecheney/mdns/
I've spoken with the author, who simply says "I got it to a point where it worked for me", and that's fine, well within the spirit of open source.
He…

Lee Hambley
- 6,270
- 5
- 49
- 81
6
votes
2 answers
UDP Multicast Performance Under Load
I have a simple C# application that uses UDP multicast in a single-receiver, single-sender scenario. The goal is to get message delivery as fast as possible in a local network environment.
I have used SocketAsyncEventArgs/SendAsync/ReceiveAsync,…

Anton
- 4,554
- 2
- 37
- 60
6
votes
1 answer
Socket exception on Hyper-V machine
Recently, our entire QA environment moved from VMWare to Hyper-V virtual machines.
One of our applications sends UDP packets to a multicast cloud by a rate of 20K packets per second.
While that worked perfectly on the VMWare environment, the Hyper-V…

Eran Betzalel
- 4,105
- 3
- 38
- 66