I think I misread your need. If you really what to use telnet, here are some posts that will be helpful: