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
1
vote
1 answer
How to send broadcast message to all iOT device in android?
I have some iOT devices , currently i am creating tcp socket connection one by one to all of the device, all devices are connected to my local wifi.
Is it possible to send one command to all devices at a time, like a broadcast pattern? Is it…

Roshni
- 61
- 7
1
vote
0 answers
In wireshark, I cannot see the packet I sent from android multicast socket
I follow the step here to set up a multicast server, but for some reason, I am not able to see my packet in wireshark. I am monitoring my wifi interface. Here is the code I used
import android.os.AsyncTask;
import android.os.Bundle;
import…

David Lefaivre
- 191
- 3
- 14
1
vote
1 answer
MulticastSocket keep listen function
I am working on a UDP based socket apps, and here I got some questions on how to implement the listen function on receive side
Is below a good way to let the receive side socket to keep listen the server side? Suppose I don't know when will the…

Sean
- 35
- 6
1
vote
0 answers
How to check if a device can join a multicast group or not?
I want to check if a device can join a certain multicast group or not. I am using the code snippet below.
The problem is I never got any exception even if the multicast group("239.253.0.1") is not available. It seems it can always join the group…

mathieu
- 29
- 3
1
vote
2 answers
How to set IP_MULTICAST_LOOP on multicast UDPConn in Golang
I need to set IP_MULTICAST_LOOP on a multicast UDP connection/socket so I can send/receive multicast packets on my local machine. This is the call that I've found which should work:
l, err := net.ListenMulticastUDP("udp4", nil, addr)
file, err :=…

Haukman
- 3,726
- 2
- 21
- 33
1
vote
2 answers
C++ How can i join to a multicast mpeg stream?
How can i manage to join a multicast mpeg stream group with an address of udp://@224.1.50.15:1234? What i want to manage is just to make a connection with the stream server to make the server become aware of that i am interested in this multicast…

swartkatt
- 368
- 3
- 10
1
vote
1 answer
SSDP Get Shared folder list using M-SEARCH?
I am using SSDP to send discover request using M-SEARCH to get list of services present.
My requirement is like i want to get list of share folders also which are present in that server.
Currently , i am sending this request in this format…

Swapnil Gupta
- 8,751
- 15
- 57
- 75
1
vote
0 answers
MulticastSocket.receive not returns even if packet is send
I'm trying to code a service that every 10 seconds sends a message to multicast group. The sender is the following:
public void send(){
int port = (Integer) config.getValue("MULTICAST_PORT");
MulticastSocket users = new…

Alessandro
- 199
- 2
- 16
1
vote
1 answer
java multiplayer game smooth network functioning
I have made a simple ball and paddle Multiplayer game in java. It uses MultiCastSocket to send and receive data.Ball is being moved only on system of player 1. Position of ball is sent by all players on the network. All players receive the data and…

Sarvesh
- 11
- 1
1
vote
1 answer
How check if multicast socket is occupied?
I need to send some stream on multicast.
Is there some way to check ( from the code ) is some multicast socket is occupied by someone else on the network that i connected to ?

Yanshof
- 9,659
- 21
- 95
- 195
1
vote
0 answers
MCAST_JOIN_GROUP returns not supported
I am trying to do udp multicast with php.
But when I try to join the multicast group with:
socket_set_option($ttl_socket, SOL_SOCKET, MCAST_JOIN_GROUP, array("group"=>"239.255.24.7","interface"=>"eth0"));
It returns:
socket_set_option(): unable…

Gerard van den Bosch
- 479
- 11
- 20
1
vote
0 answers
Why Multicast is not working properly in Android
I am trying to discover my app on a network. So I choose multicast technology. But it's inconsistent in Android.
Permission

shantanu
- 2,408
- 2
- 26
- 56
1
vote
1 answer
Should a C/C++-developer be aware of the protocols IGMP and BGP to use multicast?
Do I need to know about the protocols IGMP and BGP (one of PIM) when I write C/C++-code for multicast, or IGMP/BGP works fully automatically and transparently to me?
And is properly that for different IP-addresses of multicast groups different…

Alex
- 12,578
- 15
- 99
- 195
1
vote
1 answer
validating the mutlicast port range
I need to write a client server code. the client can send\receive packets from multiple multicast addresses and also should check the validity of those IP\port range before sending\receiving packets.
so I looked on the RFC-5771 IANA Guidelines for…

user1673206
- 1,671
- 1
- 23
- 43
1
vote
0 answers
How can I implement multi-cast socket connection using C programming
There is a problem with packets drops. I am doing socket connection to get udp packets, but I think there may be a problem in my multi-cast socket connection. Please help me — is my code proper or not?
#include
#include…

manish thanki
- 120
- 1
- 8