Assuming that you've set the address and port correctly with the Telnet Open Connection function, are you appending any terminator to the string you're writing? Try putting an EOL (\r\n) character at the end. You should also first verify your connection with another telnet client. Try the example that ships with the Internet Toolkit or try the one that ships with windows.