Link to home
Start Free TrialLog in
Avatar of Shane Russell
Shane RussellFlag for United Kingdom of Great Britain and Northern Ireland

asked on

pinging and nslookup on subnet mask ie ip address range

I know you can get utils like this :

http://www.angryziber.com/w/Home

I want to know what would be the best method to use to make a stand alone exe that would have the ability to scan an ip range on a subnet mask and would run through all of them and on each one would come up with whether its online or offline and also indicated by a red or green dot and also what the netbios name / computer or device name is similiar to the above utility

ie

Red LED / DOT is = RD
Green LED / DOT is = GD

GD    |    ip address   |   netbios / device name
RD    |    ip address   |   N/A no device is currently on this ip address
GD    |   ip address    |   Netbios name / device name

etc

I am presuming it would be WMI but not sure if there are any other methods that may be better suited ?

Also would like the option display wise to only show online devices and switch or turn this on and off.

Any info would be great including examples or suggestions.

As for what programming language - I am not sure what language to do this in if it was dot net then I would have to go for vb .net as I am not great at c sharp

Maybe C++ or Java possibly but not done too much with those languages so would need a bit more help if you suggest those languages.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of MikeDiehn
MikeDiehn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shane Russell

ASKER

as I said above I do know it has been done but I wanted some pointers and see how its done programatically hence the question and I wanted to do it in a language like vb dot net or something similiar.

Im asking for help not what utilities will do it.

I will look at those but am not too familiar with C++ or Java as per the question
I am not asking for a full copy and paste of source code in vb.net to show me how to do all of the above.

If someone can at least help me with how to find and enumerate all computers on a LAN with ip addresses I can go from there
close this question please ( Refund points ) as the first suggestion was NOT what I was asking or after for that matter.
I would prefer other experts to be emailed about this question to get help with this issue on how to do the above programatically.

Thanks
As MikeDiehn suggests... fping and nmap.

If you google for fping and nmap, you will find that you can download the source code for both, build them yourself, see how they work etc. Then you can use the knowledge to create your own application or add enhancements to those suggested.
was expecting a code snippet to be posted as a full solution and will have to download the source code from the projects mentioned and try and figure out myself what parts i need and piece it together which will be time consuming