Looking for network IP scan code

I've searched here and google, but yet to find anything simple enough for me to work with.

This is a personal project that would be useful to me and get me started learning about networking with C++.

I would like to find a simple windows console network IP address scanner, (most of what I found is GUI based), so I can study the source code.

I would give it a IP range such as 10.10.10 and it would output the IP's for that sub-net that respond. A website that teaches how to do that would also be useful.

Currently the best I have found is
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
but I think it's above my level right now and it's for unix.

Thx
Last edited on
closed account (o3hC5Di1)
Hi there,

You may want to have a look at the nmap project: http://nmap.org/
It's an industry standard on network discovery and troubleshooting and doe exactly what you described (and much, much more).
They have a windows version out as well.

On a sidenote however, network programming is not exactly easy, so you may want to try some other projects first before tackling this one.

Hope that helps.

All the best,
NwN
If you have any interest in networks then you should definitely learn nmap. It's not really hard, but it is used all over the place. It also very easily can sweep a subnet for hosts and pull all sorts of information from them.
Topic archived. No new replies allowed.