MulticastReflector

From Dash

Jump to: navigation, search

If you want to receive the Optitrack multicast, but you don't want to run your app as root, this small command line program will rebroadcast the Optitrack stream on another port. If you run the program without any arguements, it will rebroadcast on port 60001.

You must run this program using sudo. If you don't use sudo, you will see this error:

openInputMulticast(), bind: Permission denied

When sudo prompts you for a password, it is asking you for the password for the current account - which must have administrator permissions.

Note: the following examples assume that you copy the binary to a directory in your shell PATH. For example, copy it into /usr/local/bin
Usage example:

sudo multicastReflector

Optionally, you can provide a different port number for output. Example:

sudo multicastReflector -o 61234


Here is the source and xcode project:
Media:MulticastReflector_source.zip

Here is the binary, should work under any Mac OS X 10.5.x:
Media:MulticastReflector.zip