Questions tagged [avahi]

Avahi is a free zeroconf implementation - A service discovery protocol. It can be used to find services on a network and also to publish services to be found by other Zeroconf clients.

126 questions
22
votes
3 answers

dbus_bus_request_name (): Connections are not allowed to own the service

I built a root filesystem on arm. It should run dbus-daemon and avahi-daemon, but when I try to run avahi-daemon $ dbus-daemon --system $ avahi-daemon I get this message: Found user 'avahi' (UID 4) and group 'avahi' (GID 4). Successfully dropped…
Mandy
  • 405
  • 2
  • 6
  • 14
21
votes
2 answers

How do I advertise AND browse mDNS from within docker container?

I'm trying to create a ubuntu 17.04 based docker container that can browse mDNS on my network (outside of the docker network) AND advertise on mDNS to my network (outside of docker network). I want to be able to run this docker container on a macOS…
rynop
  • 50,086
  • 26
  • 101
  • 112
19
votes
1 answer

How to develop an Avahi client/server

I am trying to develop a client/server solution using python, the server must broadcast the service availability using Avahi. I am using the following code to publish the service: import avahi import dbus __all__ = ["ZeroconfService"] class…
João Pinto
  • 5,521
  • 5
  • 21
  • 35
16
votes
2 answers

Avahi Hostname Resolution: Is it caching somewhere?

I am using Fedora 18 with the avahi command line tools (version 0.6.31) I use avahi-resolve-host-name to discover the IP address of units on my subnet, for testing purposes during development. I monitor the request and response with Wireshark. …
trh178
  • 11,228
  • 5
  • 28
  • 37
15
votes
3 answers

How do I detect iPhone on network?

I am trying to detect if my iPhone is in the same network as my Raspberry Pi. I would like to execute a script when I am at home and my iPhone's presence is registered in my LAN. It seems that when the phone is in standby not even the iphone-sync…
PiEnthusiast
  • 314
  • 1
  • 4
  • 19
14
votes
2 answers

Could I use avahi to publish service across subnetworks?

Avahi is usually used for service discovery. I want to make a service discoverable from a different subnetwork, could I use avahi to achieve this? For example, the service host ip is "192.168.1.100" with mask "255.255.255.0", so it's in 192.168.1.X…
bertyuan
  • 183
  • 1
  • 1
  • 10
7
votes
6 answers

How to 'avahi-browse' from a docker container?

I'm running a container based on ubuntu:14.04, and I need to be able to use avahi-browse inside it. However: (.env)root@8faa2c44e53e:/opt/cluster-manager# avahi-browse -a Failed to create client object: Daemon not…
bart van deenen
  • 661
  • 6
  • 16
6
votes
1 answer

Avahi dns_sd compatibility layer fails to run Browse callback

Background I'm working on a cross-platform Zeroconf/Bonjour/DNS-SD library for Haskell, and figured my best bet would bet would be to target the dns_sd.h API. Under Linux, the implementation of this interface is provided by Avahi, which claims to…
acfoltzer
  • 5,588
  • 31
  • 48
6
votes
1 answer

How to run avahi in docker on a Linux host?

I am trying to setup avahi in a docker container running on a Linux host. The purpose is to let avahi announce a service of my own and form me find the host and IP of the docker host. So far avahi seems to run nicely in the container but I can not …
lg.lindstrom
  • 776
  • 1
  • 13
  • 31
6
votes
1 answer

Nginx dynamic proxy_pass variables to .local zone

So, I want to make dynamic proxy_pass to vagrant machine on my server in .local zone controled by Avahi. I have a nginx virtual host configuration: server { listen 80; server_name ~^(?.+)\.example\.com$; …
6
votes
1 answer

Dumping Avahi & Bonjour, DNS-SD Zone Files

I'm looking to make improvements to the Go library for mDNS: https://github.com/davecheney/mdns/ I've spoken with the author, who simply says "I got it to a point where it worked for me", and that's fine, well within the spirit of open source. He…
Lee Hambley
  • 6,270
  • 5
  • 49
  • 81
6
votes
2 answers

Creating a program to be broadcasted by avahi

I'm trying to write a program that outputs data that can be served over a network with avahi. The documentation I've looked at seems to say I have to register the service with dbus and then connect it to avahi, but the documentation to do this is…
victor
  • 6,688
  • 9
  • 44
  • 48
5
votes
2 answers

dns-sd: how to manually register a remote service

I have a service on another remote system which is on another physical network and its multicast packages don't get to my local system, thus I don't see its DNS-SD published services. I there a way I can manually register it on my local machine so…
Albert
  • 65,406
  • 61
  • 242
  • 386
5
votes
0 answers

Can avahi daemon be used to publish and discover service in BNEP(BT-PAN) network Interface

Can avahi daemon be used to publish and discover service in BNEP network Interface ? If two devices are tethered in Bluetooth then both devices will have IP, so we can do TCP-IP communication between them. Actually I want to do mDNS Service…
Saby
  • 718
  • 9
  • 29
4
votes
0 answers

mDNS advertising in dart

I would like to make dart program that run on Linux and windows. My app will talk to the program using mDNS to find the program computer IP and send requests. In my search I found only mDNS lookup/discovery packages. Is it possible to…
Guy Luz
  • 3,372
  • 20
  • 43
1
2 3
8 9