I am currently developing a Mac app to help with some computer sharing problems(this sharing should be among PC,Mac,Android device,iOS device etc.).Therefore I need to find a way to get a list of all the computers within the LAN my Mac shares with.It's totally the same with what the OS does,but I hope this could be done through my app to provide a better experience.So is there any api I could use?Is there anybody who's got an idea or did this before?I am really appreciate that you could kindly tell me.Thanks in advance.
I have found an answer to how to get the ip to a hostname. the answer is here
So for the first step, how to scan the LAN to get a whole list of all the devices' ip?