How do I do local multicast?
Using IP multicast on a local machine is not a good idea. OS stacks that forward multicast packets on a local machine tend to be inefficient and cause a lot of packets to be dropped. Thus, to implement a mutlicast server publishing data to both network clients and local clients, you should use combination of pgm and ipc transports:
void *s = zmq_socket (ctx, ZMQ_PUB); zmq_bind (s, "pgm://eth1;188.8.131.52:5555"); zmq_bind (s, "icp:///tmp/mypub");
Afterwards you can connect the local clients via ipc and network clients via pgm.
How do I pass my multicast traffic through the public Internet?
Public Internet is for most …