Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

Bind your socket to 127.0.0.1 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
add comment

Your Answer

 
discard

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.