Getting all ip addresses of lan
I want to make a program that gives all ip addresses of a lan, how can i do that, plz help me
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Johnny GC44 pointsPosted Jul 10, 2008, 12:40 AM EDT
if you want to get all addresses from local computer you might want to use this:
IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
and then you can try icmp ping or tcp connect to all ip addresses from 1 to 254 for each item in ips array maybe?
Ionel