Questions tagged [multicastsocket]

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.

156 questions
2
votes
0 answers

Can't receive multicast packets although I can see the stream via tcpdump

In my Linux, I have an interface eth5 with IP 10.46.55.106. I see the multicast stream on eth5: $ tcpdump -i eth5 host 233.113.216.61 and port 21001 11:18:19.416631 IP 194.0.142.188.48253 > 233.113.216.61.21001: UDP, length 20 11:18:19.450577…
xyzt
  • 1,201
  • 4
  • 18
  • 44
2
votes
1 answer

Do I need to put some sort of mutual exclusion while multiple threads are writing on the same MulticastSocket?

I have some threads which are writing on the same MulticastSocket (depending by the scheduling, probably can happen than more then one thread is writing on the MulticastSocket at the same time). Do I have to get them write on it one per timer by…
2
votes
0 answers

Android Multicasting is not Working on different devices

I am trying to build an android app, which will send messages to all the devices available in the wifi network. So I have decided to implement multicasting . I am testing my app in Nexus5 & Sumsung S4(GT-I9500). My code is working good in both…
Invictus Cody
  • 517
  • 6
  • 17
2
votes
0 answers

time out issues with Android Multicast

I am working on an Android app that will receive multicast packets from a network that already outputs reliable multicast data on 239.255.x.x . I have verified that my device can receive multicast with another application. I'm new to Java and…
jmartin
  • 21
  • 1
2
votes
1 answer

Send multi cast packets over internet in Java

I want to develop a Web Application that sends packets to clients In JAVA using UDP protocol. I need to send packets to each clients directly . Java provide a class called MulticastSocket that extends UDP. This can send packets to multiple clients…
Alireza Akhoundi
  • 214
  • 3
  • 12
2
votes
1 answer

Multicast : using joinGroup on a multicast socket (java/android) packet isn't received

I'm developping an android app (using java): i'm trying to send informations between several phones using java MulticastSocket. These phones connect to the same access point when the app is launched, this access point is my computer. This works well…
Rikoo
  • 31
  • 4
2
votes
0 answers

How to check the number of clients listening on a UDP server

I currently have a server that runs a game where each client controls a player. I have decided to use UDP because it does not wait for the client to receive the packet and therefore can run smoothly. I would like to assign each client a player, and…
Anonymous
  • 179
  • 12
2
votes
1 answer

How can I count the clients joined in a MulticastSocket?

I'm programming a chat using MulticastSocket and I will count the number of clients joined on this. try (MulticastSocket clientSocket = new MulticastSocket(PORT)) { clientSocket.joinGroup(address); Does MulticastSocket have some function for…
Daniel Ruiz
  • 331
  • 1
  • 3
  • 18
2
votes
1 answer

Java: Multithreading with two different input sources and reacting

First question here on StackOverflow, so please excuse me if I ask this incorrectly. Basically, I'm writing a Multicast Client that indefinitely listens to a multicast address until the user types "quit" into the console. I've found that setting…
2
votes
2 answers

Packet losses in UDP multicast in Android

I have created an application which gives statistics for the UDP packet loss in android. This is my architecture of the applications. 1) An application which multicast the UDP packets. Below is the code for it: package…
MMJ
  • 519
  • 1
  • 9
  • 26
2
votes
0 answers

Java broadcasting audio via UDP to Android

I'm doing an application to receive real time audio broadcasted by a Raspberry running a java server that I wrote and it have, necessarily, to be broadcasted to multiple clients. Now I'm using MulticastSocket to achieve it. The problem so far is…
Alan
  • 73
  • 2
  • 8
2
votes
2 answers

Multicasting in C: Binary does not receive when using addrinfo

I have this funny little problem in two nearly identical programs. What I am trying to do is send some data on Multicast socket and receive it. For now, I am okay if the sender receives the message (I'll set the option to not receive later). I have…
Anshul
  • 746
  • 9
  • 22
2
votes
1 answer

java voice chat using multicastsocket programming

I am trying to implement the voice chat using java multiCastSocket programming. Taking the input from the microphone and trying to listen it on the speaker. Problem is am not able to hear any voice back. I debugged through it wireshark and i can see…
SMM
  • 39
  • 1
  • 6
2
votes
1 answer

How to have two multicast sockets listen to two multicast channels with same port

I have broadly the following multicast socket code. It works fine. Now I need to join two multicast channels on the same machine like 224.10.13.18 - 55001 224.10.13.34 - 55001 and depending on which ip address it came from, I need to treat the…
Humble Debugger
  • 4,439
  • 11
  • 39
  • 56
2
votes
1 answer

Please suggest whether Android WiFi Direct supports Multicast Socket communication

Using WiFi Direct in Android is it possible to establish a MulticastSocket communication? I tried a lot for multicast socket communication between S3 and Note2 devices but no success. Is WiFi Direct supports MultiCast commnication in Android. If…
1 2
3
10 11