Script to automatic scan for UDP broadcast Smarthome server to control

Hi all,
I am developing MIT app-inventor for controlling home appliances. I have several ESP8266 modules with their owned web server to accept some controlling commands. Also, they are UDP broadcast.
Can anyone advice me whether a script on MIT app-inventor is avaiable that can:

  1. Automatically get list of devices and it's IP address (all module as connected together in a local network and in station mode, not AP).
  2. Automatic activate buttons to controll devices on each ESP8266 modules based on the number of appliances that ESP8266 is in charge?
    Thank you very much for your attention.
    Ngoc - Vietnam

you might be interested in the following extension
Extension to get all WiFi IP of a local net by Juan Antonio
taken from the extensions directory App Inventor Extensions | Pura Vida Apps


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Thanks Taifun, I will try for now!