Try using the Winsock control DSSock by Dolphin Software. I find it very handy. It will allow you to connect to any port on any server and then send/recieve any data you need to. They have a demo you can download to try it out.

TheLeeMan