Questions tagged [multicast]

Multicast refers to one-to-many network transmission options, where packets will be automatically propagated just to those nodes wishing to receive them. IP-based multicast is the common case, though other multicast implementations exist.

1621 questions
4
votes
2 answers

UDP packet sent to a multicast destination is sent via the loopback interface

I'm running Windows 10. I had recently diagnosed an issue with my computer where any packet sent to a multicast destination is sent through the loopback interface rather than the 'default' one (see my adventures here). Example code: import socket s…
DoomMuffins
  • 1,174
  • 1
  • 9
  • 19
4
votes
1 answer

Multicast route to all interfaces

This is not the same as How to multicast send to all network interfaces? which asks for a solution that would work in one program only, and requires source access - which I don't have. I have a bunch of programs producing multicast traffic that I…
Paul Foster
  • 45
  • 1
  • 1
  • 5
4
votes
1 answer

Listening for IPv6 multicasts on Linux

I'm trying to get a simple multicasting example to work on Linux (I've tried both RHEL 4 2.6.9 and Ubuntu 8.04 2.6.24). The general idea is that I would like the server to bind to a unicast address and then add itself to the group ff02::1. I would…
Ray
  • 1,769
  • 1
  • 17
  • 22
4
votes
2 answers

tcpdump shows nothing for my C++ application?

If I run: iperf -s -u -B 224.0.31.155 and run sudo tcpdump -ni any 'host 224.0.31.155' tcpdump is able to capture something: tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on any, link-type LINUX_SLL (Linux…
Hei
  • 1,844
  • 3
  • 21
  • 35
4
votes
1 answer

Multicast with AF_LOCAL or AF_UNIX sockets on Linux?

Is it possible to have multicast communications on a AF_UNIX SOCK_DGRAM socket on Linux ? Apparently a patch was proposed over a decade ago. However, I cannot find any resource on Internet showing its usage. And the following simple code reports…
Claudio
  • 10,614
  • 4
  • 31
  • 71
4
votes
1 answer

golang sending json on multicast ip

I'm writting a piece of Go to send json data on multicast udp: func send(a string, messages chan interface{}) { addr, err := net.ResolveUDPAddr("udp", a) CheckError(err) c, err := net.DialUDP("udp", nil, addr) CheckError(err) for…
r3dlight
  • 101
  • 8
4
votes
1 answer

Best way to live stream video from java server to android client?

I've been searching the best way to live stream PC's screen from Java server to Android client since few days now but I can't find an other way to TCP socket. I want to stream from PC to Android client. For now I just send images (frames) through…
Jérémy Halin
  • 553
  • 4
  • 29
4
votes
1 answer

Java - UDP Multicast Only Working on Localhost

I recently was implementing multicast into my multiplayer game to locate games running on the player's network. I created two classes, Heart and Listener. The problem I am having is that the listener only hears the heart beat through localhost,…
Zach Goethel
  • 131
  • 2
  • 10
4
votes
2 answers

netstat -g where is group IP defined

Hello when I run netstat -g I see the following table. However, I just don't know what IP all-system.mcast.net is mapped to? Where is this being defined? Is there a file in linux to set it up? Thanking you in advance IPv6/IPv4 Group…
theuniverseisflat
  • 861
  • 2
  • 12
  • 19
4
votes
1 answer

Why is MulticastSocket.setNetworkInterface() much slower using Java 8 runtime?

I am running the following program, which is much slower when I use a Java 8 runtime compared to a Java 7 runtime. public class MulticastTest { public static void main(String args[]) throws Exception { long start = System.nanoTime(); …
K Erlandsson
  • 13,408
  • 6
  • 51
  • 67
4
votes
2 answers

How can two processes which bind on the same port receive the same message?

I have two processes. both listen to the same port. This is UDP multicast so both use the socket option SO_REUSEADDR, and join the multicast group prior to bind(). When I send a message to the multicast group ip:port only one of the processes gets…
hudac
  • 2,584
  • 6
  • 34
  • 57
4
votes
0 answers

Is it possible to enable multicast on a TUN device in Android created with VpnService.Builder?

I'm in the process of creating an Android VPN app and I'm hitting a brick wall whenever I try to deliver inbound multicast packets to a test app. When my VPN app writes an inbound multicast IP packet (destination address field of IP header has an…
unbrokenrabbit
  • 301
  • 4
  • 12
4
votes
1 answer

Joining a source specific multicast on same multicast address

I am trying to set up multicast sources for an application on linux using source specific multicast (SSM) and the code is going ok (using the C interface) but I would like to verify that the system will behave as I expect it to. Setup: Multicast…
radman
  • 17,675
  • 11
  • 42
  • 58
4
votes
1 answer

Multicasting with `socat` in Vagrant & VirtualBox Env

The problem: Each machine in the same network should be able to broadcast to all the members, including itself. This is an attempt to get working multicast with socat with VMs created in Vagrant & VirtualBox Envrionment. It seems things are working…
Askar
  • 5,784
  • 10
  • 53
  • 96
4
votes
1 answer

How can you specify a source address in a multicast join in Haskell?

In the network-multicast Haskell documentation, I see a function setInterface :: Socket -> HostName -> IO () Set the outgoing interface address of the multicast. How can I use this to specify a source-address in a multicast join? The following…
gsk
  • 558
  • 5
  • 12