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
1 answer
Get sender ip from multicast packet
How do you get the IP of the sender of a Multicast UDP packet? The current code is setup in a synchronous/blocking manner (see note below). Here is the code:
private void receive()
{
string mcastGroup = SetMcastGroup();
s =…

Stuart Blackler
- 3,732
- 5
- 35
- 60
6
votes
4 answers
Refresh multicast group membership
I have several embedded machines listening and streaming rtp audio data to a multicast group. They are connected to a smart managed switch (Netgear GS108Ev2) which does basic igmp snooping and multicast filtering on its ports, so that the rest of my…

derhoch
- 458
- 6
- 9
5
votes
2 answers
source-specific multicast using boost
How can I join source-specific multicast (ssm) group using boost?
I'v successfully joined any-source multicast group using
set_option( ip::multicast::join_group( mcAddr.to_v4(), ifAddr.to_v4( )));
but I have no idea how to set ssm…

nameless
- 75
- 1
- 6
5
votes
4 answers
Boost asio socket multicast to a specific ethernet interface
I thought I had found the answer in the following example, but not quite.
boost::asio::ip::udp::socket socket(io_service);
...
boost::asio::ip::address_v4 local_interface =
…

Janice Rejto
- 51
- 1
- 2
5
votes
4 answers
UDP: Listening to the same port for two different multicast streams
I need to listen to 2 different multicast groups using the same port. Program A will listen from 230.0.0.1 and Program B from 230.0.0.2. Both multicast groups use the same port 2000 and I have no control over it.
When I run my programs I receive…

Robert Kubrick
- 8,413
- 13
- 59
- 91
5
votes
5 answers
How to minimize UDP packet loss
I am receiving ~3000 UDP packets per second, each of them having a size of ~200bytes. I wrote a java application which listens to those UDP packets and just writes the data to a file. Then the server sends 15000 messages with previously specified…

nath
- 2,848
- 12
- 45
- 75
5
votes
2 answers
Message Bus vs. Multicast
I am working on an application which consists of several modules and requires them to share information with each other. Example: publish/subscribe scenario where a module publishes some information (e.g. a state variable) and modules interested in…

Jahanzeb Farooq
- 1,948
- 4
- 27
- 27
5
votes
1 answer
Multicast message on same host using boost::asio
I'm implementing sender/receiver applications to talk multicast on the same host.
In my constructor, I have the following code to setup the socket.
boost::asio::ip::udp::endpoint listenEndpoint(listenAddr,…

Gene H
- 51
- 1
- 2
5
votes
0 answers
Windows 10: Sending multicast UDP messages from ethernet interface to WSL2 fails
I have the following setup:
external device that sends multicast UDP messages through ethernet towards a windows 10 PC
The PC has WSL2 running and within an application that is trying to listen to these multicast messages.
The multicast channel is…

Peter Devenyi
- 177
- 2
- 15
5
votes
2 answers
AWS ECS Fargate udp multicast between containers within VPC
I would like to deploy udp multicast sender and receiver on ECS Fargate within the same VPC. I follow Transit gateway multicast instruction but seems works only for EC2.
I'm wondering is ECS fargate support multicast?
AWS mentions
A non-Nitro…

Korn Pisey
- 135
- 4
5
votes
2 answers
How to resolve Ipv4 and Ipv6 from ".local" using mDNS in Android
I am trying to resolve IPv4 and IpV6 from ".local" using multicast DNS and I tried https://github.com/posicks/mdnsjava but it unable to resolve required ipv4/ipv6. Alternatively, I found one app which work for me but have no idea how it works.
App…

Tanmay Ranjan
- 318
- 2
- 8
5
votes
1 answer
Creating a TCP connection between 2 computers without a server
2 computers are in different subnets.
Both are Windows machines.
There are 2-5 IGMP-ready routers between them.
They can connect each other over multicast protocol (they have joined the same multicast group and they know about each other's…

Andrew
- 3,696
- 3
- 40
- 71
5
votes
1 answer
What is the difference between IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP and IP_ADD_SOURCE_MEMBERSHIP/IP_DROP_SOURCE_MEMBERSHIP?
Working on a project that sends multicast data packets, and the receivers can opt in/out of the group as necessary. I noticed there are two ways of joining/leaving the groups: IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP and…

Will
- 3,500
- 4
- 30
- 38
5
votes
1 answer
C# SocketException with Multicast on XP
The following C# code works correctly on Vista, but fails on XP with:
SocketException: An invalid argument was supplied.
The ErrorCode is 10022.
The firewall on XP has been disabled.
using System;
using System.Net;
using System.Net.Sockets;
public…

jpobst
- 9,982
- 1
- 29
- 33
5
votes
0 answers
Occasional java.io.IOException: Operation not permitted only on Android 7.0 by DatagramSocket.send()
The following code works fine virtually 100% time on all Android device Android 7.0:
DatagramSocket clientSocket = new DatagramSocket();
clientSocket.setSoTimeout(4000);
clientSocket.setReuseAddress(true); …

Hong
- 17,643
- 21
- 81
- 142