whew. if i were you, check the socket programming section in msdn.microsoft.com

but anyway, i'll share with you my 2 cents-worth of idea on that area.

First, in your code, make sure you ...