Skip to content

Getting all ip addresses of lan

chanu

Asked Jul 9, 2008, 9:09 PM EDT1 answer
Share
LinkedInX
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.

  • 0
    hello,
    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
    0