I want to write a python program which browses for all existing Bonjour services in my local network. And I ask if there is some way to do it since services come and go all the time?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should probably begin by taking a look at existing libraries, such as pybonjour.
In principle, of course it’s possible but you need to be prepared that a service might go away, and you will also need to refresh the idea of available servers to prevent it from going stale and not showing newly added ones.
There’s example code on pybonjour’s front page that shows how to browse for services.