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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Johnny GCPosted Jul 10, 2008, 4:40 AM
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