How to add a broadcast address to loopback with ifconfig on a OS/X?

I am trying to use ifconfig to turn on broadcast on my loopback interface. It currently reads:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

As you can see, no broadcast address! :( :( :(

I tried this on OS/X but it did not work and it did not give any error or feedback:

ifconfig lo0 broadcast 127.255.255.255

Any guru would know that?


I have one server that sends one packet. I have two clients running on the same machine as the server. I need them to pick up the packet WITHOUT having to force the server to send it twice.


Use multicast. Each client would need to join the group, but this is a very low overhead task. You'd have the additional benefit of being able to have clients on other machines be able to efficiently receive the message.

Failing this, look into one of the various message bus packages (i.e. mqueue, rabbitmq, etc) that will allow for reliable delivery of programmatic information to various processes without a need to reinvent the wheel.