A multicast socket is a bi-directional communications endpoint used for the sending of packets to multiple receivers via multicast (typically IP) or for receiving multicast packets.
Questions tagged [multicastsocket]
156 questions
0
votes
1 answer
UDP multicast is not received when socket is bound to local IP
Multicast sender is an external software, running on a host in same subnet and sending packets to 224.2.2.5:XXXX group, where XXXX is a fixed port number.
Client program, written by me, successfully joins group by using QUdpSocket (Qt5), but is…

Swift - Friday Pie
- 12,777
- 2
- 19
- 42
0
votes
1 answer
c# : UDPClient not receiving multicast from one of the Network Adapters
I would like to test Receive of multicast messages using UDP Client
I have two network adapters.
Network 1: with local IP : 10.239.1.1 [Multicast Group : 224.1.1.1 : 42333]
Network 2 : with local IP : 172.4.1.1 [Multicast Group : 224.0.1.1 :…

Hina
- 13
- 5
0
votes
1 answer
Multicast listing between two computer is NOT working
I am trying to write a listener , which will listen to multicast data from different systems. As per my understanding, any system which is present in the same subnet will be able to get any data that will be sent to a particular muticast_grp and…

Sreevathsabr
- 649
- 7
- 23
0
votes
0 answers
Receive message from multicast socket on another host (from aws server instance)
I want to send/receive messages by the multicast socket.
This is my code
'''
public class MulticastSender {
public static final String GROUP_ADDRESS = "230.0.0.1";
public static final int PORT = 7766;
public static void main(String[]…
0
votes
0 answers
How to set up multicast from udp connection without knowing ip?
I'm having trouble understanding where to even begin i've established a connection between client and server having to use an ip. How would i modify my code to look for a server that's multicasting?
#include
#include
#include…

charlie10719
- 33
- 5
0
votes
1 answer
JoinMulticastGroup with TTL
I am using C# .net framework 4.7. My application is trying to join a multicast group that's a few routers (hops) away. As a result, I am trying to send the IGMP packet with TTL > 1. Currently, I am using UdpClient.JoinMulticastGroup() with the TTL…

Lex L
- 315
- 1
- 3
- 17
0
votes
1 answer
Linux C++ IPv6 UDP Multicast sendto fails with errno EADDRNOTAVAIL (99) Cannot assign requested address
I'm trying to send IPv6 UDP multicast messages.
Part of test code below shows two parts, one for sending IPv6 multicast messages, the other for sending IPv4 multicast messages.
Code for IPv4 works fine.
Code for IPv6 always fails in sendto,…

yellow71
- 21
- 2
0
votes
0 answers
Turn off sending to sender with MulticastSocket in Java
I'm sending data with MulticastSocket in Java. Messages have structure "username: data" and so far I've been doing:
if (!message.startsWith(this.nick + ":"))
{
// do stuff
}
Is there any way not to send the message to sender at all? This way I…

qalis
- 1,314
- 1
- 16
- 44
0
votes
2 answers
Can't read RTP packet (or get its size) from multicast socket via several 'read' calls
I have trouble reading RTP packets from a multicast socket which is opened using
the following function:
int
open_multicast_socket
(const char *group_address,
uint16_t port)
{
assert(group_address != NULL);
int
…

AlexDarkVoid
- 485
- 3
- 12
0
votes
1 answer
Port-forwarding a Multicast IP
I've spent some time learning about UDP connections, particularly with Multicast Sockets in Java.
I was able to make a simple Multicast Socket "group chat" on my local network, but I've since been trying to expand this to work beyond my local…

Dan
- 324
- 1
- 3
- 13
0
votes
3 answers
MulticastSocket in java : BindException all the time
I am coding a basic app, a chat that sends message through the network using multicast and unicast, depending on the situation. So far, no problem, until a while ago when I began the MulticastSocket part. I have a BindException when I run this basic…

Akee
- 1
- 1
0
votes
3 answers
Java MulticastSocket causing null pointer exception
I'm trying to get a multicast socket working on a 'server' app, which will spit info at a bunch of android phones. The code snippet responsible for setting up the socket and sending a some data is as follows:
private MulticastSocket…

Steve
- 1,439
- 2
- 14
- 27
0
votes
0 answers
Unable to use UdpClient to multicast to "239.255.255.250"
string sMulticastAddress = "239.255.255.250";
UdpClient uc = new UdpClient();
uc.JoinMulticastGroup(IPAddress.Parse(sMulticastAddress));
IPEndPoint iep = new IPEndPoint(IPAddress.Parse(sMulticastAddress), 3702);
byte[] abFoo =…

Hong
- 17,643
- 21
- 81
- 142
0
votes
0 answers
MutlicastSocket receive not always
I want to implement a "simple" SSDP discovering client. Means the client should send out a
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: ssdp:all
and afterwards listen to "the network"(?) to get the list of IP…

StefMa
- 3,344
- 4
- 27
- 48
0
votes
1 answer
How to implement a multicast socket in c++
I'm a c# programmer and i need to implement a multicast socket in c++.
I've try to google search it and didnt find much help.
So if someone could give me some links to a good c++ multicast socket tutorial it will be highly appreciated.
My c# socket…

Gabriel
- 1,435
- 3
- 17
- 24