multicast

Android Multicast is only working using 255.255.255.255 address

瘦欲@ 提交于 2019-12-04 12:22:22
I tried setting the Multicast host as 230.0.0.1 using the port 5500. Then, on the other side I said to join group 230.0.0.1 at port 5500. It joined and it received packets for a few seconds. Then it stops all of a sudden. If I use 255.255.255.255 it receives packets normally. Why is this happening? The code for the Multicast sender is below: private class StatusBroadcasterThread extends Thread { private static final boolean DEBUG = App.DEBUG; private static final String TAG = "StatusBroadcasterThread"; private DatagramSocket broadcastSocket; public StatusBroadcasterThread(int port) throws

How can chrome.socket be used for broadcasting or multicasting?

亡梦爱人 提交于 2019-12-04 11:50:24
问题 I want to create a Chrome Packaged App used for LAN only, where one instance serves as a server (session host) and other instances must discover the server and join the session. Can this be achieved with chrome.socket? I have set up the server like this: var socket = chrome.socket || chrome.experimental.socket; socket.create('udp', {}, function(createInfo) { var publish_socket = createInfo.socketId; socket.bind(publish_socket, '225.0.0.42', 42424, function (result) { if (result < 0) console

Android udp multicast with Ethernet

狂风中的少年 提交于 2019-12-04 11:38:00
Hello everyone, I'm working on a project with udp multicast. I have a server sending multicast udp packets via an ethernet cable. I have spent weeks of work reading all the posts about multicast on android and I still can't receive any udp packet on my Asus Transformer Tablet, 4.1. For some reasons, I can't put my code here, I will try to explain it carefully. I have a simple MainActivity displaying some stuff. Almost everything is n the Oncreate method, and so is the line where I call a method named UDPreceiver . This method is defined in a class named UDPreceiverClass . In UDPreceiver ,

how to create socket.io multicast groups

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 11:37:16
I want to emulate multicast with socket.io I am used to BSD sockets where you save file descriptors in FD_SET, and iterate over them in an event loop to send() or write to them individually. If I can do the analogy in javascript, I will be golden:) Any ideas on how to store the "file descriptors" and then individually send() data to those descriptors with socket.io? thanks in advance! Any ideas on how to store the "file descriptors" and then individually send() data to those descriptors with socket.io? You could store the socket.io id and use that to send messages to individual connections. //

Duplicate packets in Multicast Receiver Socket [duplicate]

有些话、适合烂在心里 提交于 2019-12-04 10:23:08
This question already has an answer here: Receiving multiple multicast feeds on the same port - C, Linux 8 answers There seems to be a bug in the following MulticastReceiver implementation. On creating two instances for <224.0.25.46,13001> and <224.0.25.172,13001>, I get each packet twice in each stream. Any pointers ? My guess is REUSEADDR ? class MulticastReceiverSocket { protected: const std::string listen_ip_; const int listen_port_; int socket_file_descriptor_; public: MulticastReceiverSocket ( const std::string & listen_ip, const int listen_port ) : listen_ip_ ( listen_ip ), listen_port_

Link-scope IPv6 Multicast packets suddenly not routable on a MacBook Pro?

旧城冷巷雨未停 提交于 2019-12-04 10:14:54
This is a slightly obscure question, but I'm stumped and I thought maybe somebody out there might have more of a clue on the issue. My co-worker has been successfully running an in-house application that uses IPv6 multicasting on his MacBook Pro for several months, but today the Mac decided to stop routing the multicast packets. In particular, the program prints this error: SendDataUDP(ff02::bead:cede:deed:feed@4) failed on Network interface [Name=[en0] Description=[] IP=[fe80::222:41ff:fe21:dfd4@4] Netmask=[ffff:ffff:ffff:ffff::] Broadcast=[::]] (errno=65/No route to host). ... which pretty

Best tutorial for application multicasting? [closed]

大城市里の小女人 提交于 2019-12-04 07:09:42
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I've recently become aware that there's a distinction between IP multicasting (which apparently doesn't work that well on the public internet) and application multicasting (which is apparently used in IRC and PSYC, per http://en.wikipedia.org/wiki/Multicast ). Is there a good tutorial on implementing application-level multicasting? I thought the whole point of multicast was to reduce bandwidth for

Sniffing IGMP messages on the local network

 ̄綄美尐妖づ 提交于 2019-12-04 05:47:29
问题 I'm trying to sniff all IGMP messages on the local network (for crazy reasons not to be discussed ;-)). I have some questions related to this, as I'm not really an IGMP/routing expert. Is it even possible? I know I can read IGMP from a raw socket, and I know you can use Wireshark to monitor the IGMP messages that reach your local computer, but what puzzles me is this: I use a program on another computer (separated from the one running Wireshark by a switch) which will join a multicast address

MulticastSocket constructors and binding to port or SocketAddress

不打扰是莪最后的温柔 提交于 2019-12-04 05:07:45
I may have a fundamental misunderstanding of the term binding here but I am confused about the usage of the MulticastSocket and it's constructors. They no not do what I understand they should do should do so any who can help me clear my misunderstanding would be appreciated. Firstly what I am trying to achieve. I have tried to write a short program that creates a MulticastSocket bind it (i.e. listen) on a specific network adapter and then join a specific Multicast group. I have tried the following (client) code which works ok, I can multicast a packet to it without the Multicast socket timing

Why are my UDP multicast not reaching machines on the network?

北战南征 提交于 2019-12-03 21:38:21
I am trying to set up auto discovery using UDP multicasting, and am using some sample code from the internet. this seems to work ok when I run the client and the server on the same machine, but when I run them on different machines, either with a machine running in a VM on my machine (virtualBox) or on other 'real' machines on the network then the other machines never seem to receive the messages being broadcast. After some googling it seems the likely culprit would be the router (SpeedTouch 780) which might be dropping the packets. How can I check if this is the case? Are their other things