Port scanner

The port scanning application is a very small program to scan for open ports on different hosts. It's not a problem copying the result to a file and save, if you want to do that. I could ofcourse pretend when scanning port 21, that it's ftp, but I couldn't know. Most likely, it is ftp, but you can use any port for anything. If you want to make this little app fail, it's not hard. I didn't put much time into making the app "idiot secure", so any bug you find when you click a number of times on different buttons don't matter.
If you find real bugs, program not working for some reason. Send me an e-mail, and I'll have a little look.
How it works
The program is running a thread for the actual scanning. So it's possible to start many threads at the same time. Thats why I made the program stop button and the can button change being active. This means you can only do one scanning at a time now (unless you click faster than my program can turn the button off).Hostname: This can be either an URL, or an IP adress. Makes no difference.
TCP: Select this if you want to scan for the open TCP ports
UDP: Select if you want to scan for the open UDP ports (Takes more time)
Port range: Portrange from "X" - to "Y"
Also you need to keep in mind that some servers are set up in a way, that when you try to scan too many ports, too fast, it will not let you in. This means that if you try scanning more than one port at the time, it might not work. On my server, port 80 is open, but it won't reply if you are too aggressive when trying to scan.
Bug fix 21.06.2009
- Progressbar - calculate correct
- Scan button - only turns inactive when scanning begins
- Scan button - only left click will work (can't start two threads)