Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an application I need to interface with that listens to a multicast address. I'd like to be able to run a program I've written and have it interface with the other application by multicast without having the traffic leave the box.

How can I go about setting this up and preferably doing it through software as I might need to deploy this on multiple boxes.

share|improve this question

Bind your socket to for incoming data and for outfoing data join a multicast group.

P.S. why multicast and not tcp which seems to be logical?

share|improve this answer
The application I'm interfacing with only deals with multicasts, is there an easy way to get around this using a hack, such as netcat or something? – Ratzes Jul 22 '11 at 2:30
You can write a program or a script and pipe its output to a tool like emcast or mnc (multicast netcat) - google for them. – r00m Jul 29 '11 at 17:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.