Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link local address #16

Closed
Kane610 opened this issue May 21, 2019 · 13 comments
Closed

Link local address #16

Kane610 opened this issue May 21, 2019 · 13 comments

Comments

@Kane610
Copy link

Kane610 commented May 21, 2019

Hi!

Another question. I have Axis cameras that use bonjour to be discovered, they report both link local address and a normal address, it seems like with this library you can't be sure which one you will get as it will show the one or the other between runs. How would I go about fixing this?

@frawau
Copy link
Owner

frawau commented May 22, 2019

Could you run
python3 -m aiozeroconf -s

A few times to show me what is happening?.

Also, could it be that it is the camera that advertises services like that?

@Kane610
Copy link
Author

Kane610 commented May 22, 2019

It seemed to always be the same address running that command.

The cameras have an option to turn it off, but with tools like discovery for OSX it will show both addresses.

@frawau
Copy link
Owner

frawau commented May 22, 2019

It could be related to the fact that ServiceInfo only has one IPv4 and one IPv6 associated with it. This PR in the original package seems to solve that issue. I will check if I can port it here.

@Kane610
Copy link
Author

Kane610 commented May 22, 2019

Yes that would be great. What time line do you think this will happen in?

@frawau
Copy link
Owner

frawau commented May 23, 2019

Hopefully this WE

@Kane610
Copy link
Author

Kane610 commented May 23, 2019

Wow that's quick. That would bring support with first release using aiozeroconf. Perfect!

@frawau
Copy link
Owner

frawau commented May 25, 2019

Hi,
I spent some quality time with the library trying to solve your problem.

My tentative fix is in branch dev_ha. Could you try it please.

One thing I noticed is that there is a small issue if you start a listener before you publish a service. It will get you ServiceInfo as soon as it gets an A or AAAA record. There is no way to know that there should be more I guess.

Let me know.

Regards,
François

@frawau
Copy link
Owner

frawau commented May 25, 2019

Don't forget to read the commit message... Non backward compatible change

@Kane610
Copy link
Author

Kane610 commented May 25, 2019

I will try it out tomorrow 👍🏻. Backwards compatibility isn't an issue yet since we just have it published to dev branch

@Kane610
Copy link
Author

Kane610 commented May 26, 2019

Unfortunately there is an issue with the Asyncio UDP implementation in python for windows (home-assistant/core#24115) so we can't use your version of Zeroconf until python 3.8. I will try this out as soon as I've gotten everything reverted and working with the sync zeroconf implementation

@wiryonolau
Copy link

Any update on advertising on multiple ip address ?

@frawau
Copy link
Owner

frawau commented Apr 2, 2022

Sorry no. The OP drop the ball on this, so I did too. You can try the develop branch.

@Kane610
Copy link
Author

Kane610 commented Apr 30, 2022

I followed up on the interest in revisiting changing to this library but the python-zeroconf has been rewritten to be async so there is no longer any need. So I'll close this issue now.

@Kane610 Kane610 closed this as completed Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants