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
3
votes
2 answers
Android Multicast socket stops listening
I have a service on Android that listens and responds to packets it receives via multicast.
This works most of the time, but unfortunately, I'm finding that every now and again it'll just stop receiving packets. The thread remains blocked on the…

David Given
- 13,277
- 9
- 76
- 123
3
votes
2 answers
How to use Java MulicastSocket (UDP)?
I develop client-server application, working in real-time. Server and clients exchanges by small messages, so I choose UDP for my architecture (as suggested in many articles in network).
It's not a problem for me to use default java's…

Crabonog
- 423
- 3
- 12
3
votes
1 answer
Java: Determine receiving address when receiving with MulticastSocket
I am using MulticastSocket to receive UDP Multicast packets. How can I determine to which address such a packet was sent? With the methods provided, I am only able to determine the sender address.
Of course, I am the one who sets the To-Address when…

guruz
- 1,604
- 14
- 21
3
votes
2 answers
IPv6 Multicast example
I've searched for examples of how to implement a simple ipv6 multicast example, however I have only found examples using ipv4.
Can anybody provide a simple "helloworld" example of ipv6 multicasting?

Moonlit
- 5,171
- 14
- 57
- 95
3
votes
1 answer
MulticastSocket for multiplayer game
I am studying the structure for my server-client communications in my multiplayer game.
I came to the conclusion that UDP is the best choice due to the "shoot and forget" way of using it that will not block the application if a packet is lost.
I…

Gianmarco
- 2,536
- 25
- 57
3
votes
0 answers
Unable to capture the IPv6 multicast traffic for Windows 8
Following is the function I wrote to capture IPv6 multicast data coming on multicast address ff02::1 and port 9154.
This code works fine on Windows Vista and Windows 7. But I am unable to capture the same traffic for Windows 8 (none of the winsock…

Shikhar Bhargava
- 81
- 9
3
votes
1 answer
J2ME MulticastSocket alternative
I have an app in Android that use communication by MulticastSocket. I want to write similar app in J2ME with communication Android <-> J2ME through WiFi using MulticastSocket. The problem is that in J2ME not exitsts MulticastSocket. There is only…

lgi
- 65
- 5
3
votes
2 answers
Help with Sending/ Receiving UDP packets - C Sockets
Ok, if you look at some of my previous questions, I've been working on getting a simple connection up and running with C sockets (I'm still fairly new to the whole networking aspect of an program, but everyone has to start somewhere, right?). I've…

Josh Bradley
- 4,630
- 13
- 54
- 79
3
votes
2 answers
Objective-C - Determining IP address of iPod touch programmatically
I'm programming in objective-C for several iPod devices and I was wondering about something. I'm developing an application that utilizes the server-client model and I'm using the UDP protocol with C sockets. Is there a class out there that allows me…

Josh Bradley
- 4,630
- 13
- 54
- 79
2
votes
0 answers
Receiving data from Multicast
I am sending data from a UDP socket to a multicast address. UDP sender socket has the port number 5555 and the address 192.168.0.1 and the multicast has the address 239.192.255.1 and port number 5555. I am able to send the data to the multicast…

Solu
- 29
- 3
2
votes
1 answer
How can I receive Multicast messages on Android?
I've got a very simple draw application on my PC that stores points and draws an oval for each point.
I'm trying to send this to an android application that will receive coordinates for each point and then draw the ovals.
Right now I'm using…

Orujimaru
- 835
- 2
- 13
- 18
2
votes
2 answers
Aeron basic pub/sub pair connects on same host, fails across hosts
I am running the BasicPublisher/BasicSubscriber pair from https://github.com/real-logic/aeron binding them to the same multicast group+port. When they run on the same host they connect, but when they run on separate hosts (same switch+subnet+vlan)…

asyncify
- 95
- 7
2
votes
1 answer
How to improve data synchronization using Unity an multicast UDP socket
I'm teaching myself some simple networking using Unity and Sockets and I'm running into problems synchronizing data between a client and server. I'm aware that there are other options using Unity Networking but, before I move on, I want to…

jonathan topf
- 7,897
- 17
- 55
- 85
2
votes
1 answer
multicast data from specific ip address
For example I am having two different segment IP of same server 172.17.8.90 172.19.8.100. Now, I want my program to send multicast from only 172.19.8.100 this ip. Currently my program is sending multicast from 172.17.8.90 which is not allowed to…

Nitesh Prabhat
- 41
- 1
- 5
2
votes
0 answers
Multicasting in C macOS
Multicast between 2 applications on same host(macOS). The example is based on launching 2 applications Appli_A who join the same multicast group and are listening of an incoming datagram packet which is beeing send by the application Appli_B but…

Daniel B
- 91
- 1
- 5