[avahi] Registering to a specific interface?

Michael Bishop mbishop at perforce.com
Mon Aug 18 17:52:58 PDT 2008

Hi Trent,

Thank you for considering it. In our use case, we provide a small  
local webserver that users can run on their system that provides a web  
interface to our server. Currently, it has a mode which, for security  
reasons, refuses connections from anything other than the local  
machine (ie. the local web-browser).

For the convenience of our users, we'd still like the local web- 
browser to show the zeroconf-registered local-webserver, but since it  
won't accept connections from outside machines, it doesn't make sense  
to advertise it to outside machines.

The user in this case just needs to start the local webserver and open  
their browser to see it in the list of available servers.

Thanks again,

_ michael

On Aug 18, 2008, at 4:58 PM, Trent Lloyd wrote:

> Hi Michael,
> On 19/08/2008, at 7:04 AM, Michael Bishop wrote:
>> Avahi folk,
>> I'm most used to the DNSSD calls and am trying to find similar
>> functionality in avahi. I see that when registering a service using
>> Bonjour, I can specify a specific interface upon which to register...
>>  http://tinyurl.com/6m57dy
>> In particular, I can specify a constant so it will register in a way
>> that only processes on the local machine can see it
>>  http://tinyurl.com/6m57dy
>> Is there a way to do this in Avahi?
> Actually, we don't support this.
> This is something that seemed a bit silly to us originally so we never
> implemented it. [Why use DNS-SD for local services!? :)]
> However, this has been requested before:
> http://www.avahi.org/ticket/198
> And a patch was provided although we have not committed this to date.
> Perhaps I will review this a little later.
> Certainly however this is not available in the currently shipping
> version.
> Regards,
> Trent
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi

More information about the avahi mailing list