I believe that this tutorial from codeproject should give you what you are looking for.
The tutorial looks pretty detailed and consists of a server / client component. I think that this part should satisfy the restrictions not to use the echo server, since you have access to the server, as well as its code for additional information.
Hope this helps
Brian dishaw
source share