Create hotspot and gets the IP

Hi, can I create an application that runs the hotspot and gets the IP of those connected to the network I broadcast?

Hi, can I create an application that runs the hotspot and gets the IP of those connected to the network I broadcast?