I know there are other port scanners posted here at PSC, and definitely they're a ton better than this, but no matter, this code is well documented and is great to use for learning about winsock.
This port scanner allows the user to do two things... either do a scan to find all the ports that are in use (within the port range specified) on the local machine, or do a scan to find all the ports that are accepting connections on another machine (though you can scan yourself as well).
The user specifies a target IP address, a port range (0-32676), and the max amount of winsock elements that can be loaded at once (this doesn't mean that the program will be limited to scanning that amount of ports per second, though). As well, there's an option for the user to have the name of the port (what the port is used for) displayed (if it's documented - there's an array in the program that has the names of the ports).
The port scanner closes connections and counts them out as errored connections if a connection is not established between the machines on a particular port within .75 seconds of the time the request is sent...
Submitted On | 2002-05-11 20:09:06 |
By | Josh Simmons |
Level | Intermediate |
User Rating | 4.8 (19 globes from 4 users) |
Compatibility | VB 5.0, VB 6.0 |
Category | Internet/ HTML |
World | Visual Basic |
Archive File | Remote_and820885112002.zip |