Possible Duplicate:
Get a list of all computers on a network w/o DNS
I am creating an application where you can send information between computers on a network. The computers listen for connections and can send information to another computer that is on the network. I need to know how to get a list of hostnames or IP addresses on the network the computer is connected to.
I don’t know where I got this code from anymore.
The last piece of code is from me (getIPAddress())
It reads your ip to get the base ip of the network.
Credits go to the author: