Udp discover bulbs best way

I found if use UDP way, the bulbs discovery will be a heartbreaking thing, what’s the best way to find all the bulbs with UDP, can it list all the bulbs at one time?
Thanks