There's a sample from Microsoft
here[
^] that gives a clear solution you might use as a reference. One thing I note is that the article is for .Net 4. It's possible that previous versions of the TCP-related methods don't work with the IPv6 standards, and you may be using an earlier version for your development. If so, try rebuilding the solution using .Net 4 and see if that changes anything.