I'm using winsock to scan a subnet for NCTs, using vb6. It works flawlessly on a windows 2000 PC, but not so good with XP. With XP, when the program tries to connect to an IP that doesn't exist, it's almost like it keeps trying to connect, even though I closed that winsock and unloaded it. I can do a netstat -n and see those IPs still there. This causes my program to quit working all together until XP quits trying to connect to those IPs. I guess there is a limit to how many simultaneous connections you can make with winsock?
I've tried just using a single winsock control and scanning one IP at a time, and I've tried it with a winsock array with no luck. The only way it works is when I put a big pause in between every IP...but it's still inconsistent.
Is there any other way to stop trying to connect to an IP other than "winsock(x).close"??