I am making a 2-way file transfer program, with 2 winsocks, one for files and one for information. The problem is after the client connects, I invoke the close method for both, but if i try to connect again, it doesn't work. But heres the weird thing: If i step through the program, it works! But with normal F5 operation, i always get that error. Is there some way to close the port that I should know? If you need my code I can post it.