avahi: can't get a client to see a service
Hi!
I'm trying to program a client on python (using pyzeroconf) that will detect a service that is been "advertised" with avahi.
Now.... I have already gotten the client to see the service, however I don't get the client to see the details of the service (or something like that).
First, I tried setting the <host-name> of the avahi service to be a domain that is mapped to a lan address. I used the fqdn of the host in the <host-name>, but that failed. I took a look at the zeroconf.py code and it was because it didn't end up (the fqdn) in ".local.". So now I have a domain name that is the old fqdn + .local.
<host-name>host.domain.local.</host-name>
Still the client doesn't get to see the details of the service. When I get to getServiceInfo() all I get is a "None" (or NoneType, can't remember)=. When I see what's going on "on the wire", I see that the client is making some requests, like it wants to resolve the hostname (fqdn + .local.") through zeroconf, but then I don't have a mapping between that domain name and the ip address on avahi. Am I missing that step to solve the whole problem? What should I try then?
Thanks in advance.
|