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
1
vote
1 answer

Is MulticastSocket.send() reentrant?

I have 2 threads that want to invoke: multicastSocket.send(dP1) and multicastSocket.send(dP2) respectively, where dP1 and dP2 are different DatagramPacket objects, and multicastSocket is the shared instance of MulticastSocket. I don't understand if…
diningphil
  • 416
  • 5
  • 18
1
vote
1 answer

UDP Multicast socket doesn't work on a linux 64 bits platform

I wrote a very small C code to open an UDP multicast socket, it works well on a 32 bits platform but when I recompile my code and try it on a linux 64 bits platform it doesn't work. The program is pending undefinitely on the recvfrom() function. I…
AwaX
  • 448
  • 3
  • 8
  • 19
1
vote
1 answer

How to rejoin a multicast group in Java

I have a scenario in which the router may be down when my multicast listener joins the group. In that scenario then multicast messages will never reach the listener. So I plan on letting the listener timeout and then rejoin the multicast group. The…
William
  • 20,150
  • 8
  • 49
  • 91
1
vote
0 answers

Android multicastsocket send is dropping packets

I have an app which continuously sends data in multicast socket after joining to a specific IP group. After sending packets for few hours, all of a sudden it stops sending data. From java socket send is successfull but there is no packet info in…
Daniel
  • 35
  • 5
1
vote
2 answers

MulticastSocket doesn't open port

I'm trying to create a simple multicast communication between my PC (Ubuntu, client) and my phone (Android, server). Unicast/TCP connections work without any problem, the defined port (37659) opens both on PC and phone. When trying to use a…
s3lph
  • 4,575
  • 4
  • 21
  • 38
1
vote
1 answer

Java multiple multicast sockets in same group on same host and port

I'm using multicast to implement a simple discovery service. Several instances on the application must be able to run on the same host, I therefore end up with several multicast sockets that are members of the same group on the same host. On Linux,…
rthur
  • 1,466
  • 1
  • 15
  • 15
1
vote
0 answers

How to set up a socket for UDP multicast with 2 network cards?

this problem like How to set up a socket for UDP multicast with 2 network cards present?, but this is for C++, But I am in mono, So I want to know how to do this in C#. I use follow code : this.m_DhcpSocket = new Socket(AddressFamily.InterNetwork,…
Cheng Duke
  • 31
  • 4
1
vote
1 answer

Error in multicasting a message in java

I need to multicast a message across connected clients but facing a problem. I have tried the following snippet for this link: String msg = "Hello"; InetAddress group = InetAddress.getByName("228.5.6.7"); MulticastSocket s = new…
Nitesh Verma
  • 1,795
  • 4
  • 27
  • 46
1
vote
1 answer

NodeJS v.0.10.X is not backwards compatible with v0.8.X for multicast

NodeJS v.0.10.X is not backwards compatible with v0.8.X for multicast. bind seems to have changed from synchronous to async. I'm currently working around the issue with a horrible…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
1
vote
0 answers

multicast socket doesn't work when using JDK 7 on Mac

I have a code about multicast sending and receiving. It can work on Mac using JDK 6. However, when I change to use JDK 7, it can't work correctly. The code is like this: final InetAddress group = InetAddress.getByName("228.2.3.4"); final…
1
vote
0 answers

multicast socket doesn't work after the machine wakes up from sleep or hibernate in Windows 7

This question is similar with multicast socket - will not work when computer wakes up from sleep. But that question was already closed and its solution is not what I want. I have a code about multicast socket receive. It can work in Windows XP, 7…
1
vote
1 answer

How to get the name of host sending the packet

I wrote a java program that opens a multicast socket and gets a packet from any sender using same multicast IP. I want know the name of the host and IP that is sending. THANKS IN ADVANCE
Sai Krishna
  • 39
  • 1
  • 7
1
vote
1 answer

Java Multicast Socket not working on Windows (SocketPermission Exception)

When starting a Multicast java socket on windows I get the following error (firewall deactivated): java.security.AccessControlException: access denied (java.net.SocketPermission 230.0.0.1 connect,accept,resolve) at…
Caroline
  • 381
  • 1
  • 4
  • 13
0
votes
0 answers

Multicast udp not working in android via ethernet cable

I am trying to send a multicast udp(code to send multicast) from my ubuntu macine to my android app(code to receive multicast) via ethernet cable. I have dhcp server running in ubuntu machine and ethernet interface is also enabled in ubuntu…
A.G
  • 3
  • 6
0
votes
0 answers

Setting IP_MULTICAST_IF and IPV6_MULTICAST_IF on a loopback interface

Is setting of setsockopt with IP_MULTICAST_IF or IPV6_MULTICAST_IF valid for a loopback interface. What happens while this option setting fails and we try a sendto() on this loopback interface? While I tried, setsockopt returns "No such device(19)"…