Network IPs
-
Hi. i write a net program and need to know which computers are connected to my computer by their ip. I run a tcp port in some computer and my goal is finding them but first need to get all ip in my network. first i start with getting my ip summask and with a loop check all ip from 1 to 255 but this is too slow so want a command like "net view" for getting all available ip and only test them. Your help may be Great
Regards Amir Jalaly
-
Hi. i write a net program and need to know which computers are connected to my computer by their ip. I run a tcp port in some computer and my goal is finding them but first need to get all ip in my network. first i start with getting my ip summask and with a loop check all ip from 1 to 255 but this is too slow so want a command like "net view" for getting all available ip and only test them. Your help may be Great
Regards Amir Jalaly
I do not know about any network related classes.Hope U will get good solution from any other member. But If U did not find the solution do this: using Process.Start to execute the net.exe file with "view" as argument. Redirect the output of the command to a string and from that find patterns for the IP address.
Regards, Arun Kumar.A