Icon Patrick Gibsonpatrickgibson.com
news and such projects, etc. movies writings hyperlinks contact
search:
news and stuff

Tuesday, October 21, 2003

More Darwin Streaming Server

Warning: High Geek Content, Low General Interest. I written about Apple's Darwin Streaming Server (aka. QuickTime Streaming Server) before, and I will continue to do so until Apple provides sufficient documentation for this product. Today, I will briefly cover the bind_ip_addr configuration option.

By default, Apple puts the following line in their /etc/streaming/streamingserver.xml:

<PREF NAME="bind_ip_addr" >0</PREF>

This causing the streaming server to bind to all available IP addresses on the server. This may or may not be desirable. Apple does at least show you to how to bind to a particular IP here. Basically, instead of using 0 as your value, you just enter the IP address of your choice:

<PREF NAME="bind_ip_addr" >123.321.123.321</PREF>

But what if you want to bind to more than one, but not all IP addresses on the server? Searching on Google for bind_ip_addr will give you a few results, but none that tell you how to do this.

I had the need to do this, so I tried a few things before figuring out the correct way to do it. At first I tried specifying multiple IPs separated by commas and then spaces, but neither worked. I looked through the rest of the file, and saw how Apple specified options with multiple values for other configuration directives, and decided to try the same:

<LIST-PREF NAME="bind_ip_addr" >
  <VALUE>111.222.111.222</VALUE>
  <VALUE>111.222.111.223</VALUE>
</LIST-PREF>

To my pleasant surprise, it worked! So there you have it folks: a way to have QuickTime/Darwin Streaming Server bind to selective IP addresses on your server.

Posted at 19:47
« On the Mac front | Back to News and Such | Worst Stopwatch Ever »

Comments

Post a comment

Name:

Email Address: (optional)

Website: (optional)

Comments:

Enter the number shown here:

back

Retrix Hosting