Reputation: 39
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?
Upvotes: 2
Views: 825
Reputation: 399703
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.
Upvotes: 1