1

How do I get a list of all the IP addresses (and possibly computer names?) in use on the same subnet as my machine using C#?

svick
  • 236,525
  • 50
  • 385
  • 514
vrushali
  • 59
  • 3
  • 6
  • duplicate http://stackoverflow.com/questions/105676/get-a-list-of-all-computers-on-a-network-w-o-dns – anishMarokey May 06 '11 at 11:17
  • What do you mean by 'all computers'? You could try broadcast-pinging the entire subnet, but that would only give you computers that respond to ping.. you could try connecting to them via windows shares.. – qdot May 06 '11 at 11:17

1 Answers1

1

Have a look at

http://www.codeproject.com/KB/IP/ListNetworkComputers.aspx

anishMarokey
  • 11,279
  • 2
  • 34
  • 47
FIre Panda
  • 6,537
  • 2
  • 25
  • 38