If you have a list of IP addresses for each possible machine, then loop through searching one at a time. If you don't have a list, how would you even go about starting a search?