How would I be able to get all of hte IP's on a network, and output them in a listbox or so?
Printable View
How would I be able to get all of hte IP's on a network, and output them in a listbox or so?
You could try pinging all possible IP addresses?
Not really very efficient but it would work.
To do it properly you would have to wait for the max timeout period, ie. 30 seconds and try 2-3 times for hosts that do not respond. This would mean a time of 10 mins or greater on a large network between initating the task and the completion.
Have a look at the WNet API calls.
There are some of them that allow you to Enumerate the domains or machines on a domain. Effectively this correlates to those machines that are available.