Your Digital Media Has Never Looked So Good

 
frusty
Topic Author
Posts: 2
Joined: Tue Aug 05, 2008 12:22 am

Accessing a remote Firefly using Avahi

Tue Aug 05, 2008 12:28 am

Hi there,

I'm trying to access a remote Firefly server with my Soundbridge. As a first try I set up a Rendezvous Proxy on my Windows box and everything worked find. Since I'm running a Linux based router which is online all the time, I tried to configure Avahi to advertise the remote Firefly. Unfortunately I didn't manage to get this setup working. I dropped the following service description into Avahi's service directory:

<service-group>
   <name replace-wildcards="yes">Firefly on %h</name>

   <service protocol="ipv4">
      <type>_daap._tcp</type>
      <port>3689</port>
      <domain-name>local</domain-name>
      <host-name>some.remote.machine</host-name>
      <txt-record>Machine Name = Firefly on some.remote.machine</txt-record>
   </service>

   <service protocol="ipv4">
      <type>_rsp._tcp.</type>
      <port>3689</port>
      <domain-name>local</domain-name>
      <host-name>some.remote.machine</host-name>
      <txt-record>Machine Name = Firefly on some.remote.machine</txt-record>
   </service>
</service-group>


Avahi seems to advertise the service and I could successfully access the remote Firefly with iTunes. But although the Firefly is accessible via iTunes, it does not show up on my Soundbridge. Any suggestion? Thanks in advance.

-- Wolfgang
 
frusty
Topic Author
Posts: 2
Joined: Tue Aug 05, 2008 12:22 am

Problem solved!

Fri Aug 22, 2008 11:33 am

Finally I managed to access my remote server! Here is what I configured to make it work:

First I created the service configuration (/etc/avahi/services/firefly.service) which is pretty similar to what I published in my first post. Basically the only, but important difference is that I did not specify the official host name of the remote server. Instead I used a host name which is in the .local domain.

<service-group>
   <name replace-wildcards="yes">Firefly on musicbox</name>

   <service protocol="ipv4">
      <type>_daap._tcp</type>
      <port>3689</port>
      <domain-name>local</domain-name>
      <host-name>musicbox.local</host-name>
   </service>

   <service protocol="ipv4">
      <type>_rsp._tcp</type>
      <port>3689</port>
      <domain-name>local</domain-name>
      <host-name>musicbox.local</host-name>
   </service>

</service-group>


Since the musicbox.local host name has to be resolved to the server's official IP address, I added a static host to /etc/avahi/hosts:

11.22.33.44 musicbox.local


That's all! Now both of my Soundbridges (A Roku and a Pinnacle) are able to connect to the remote Firefly.

Who is online

Users browsing this forum: No registered users and 2 guests