none
Telnet connection in c# RRS feed

  • Question

  • Dear all,

    I need to do the following in c#:  I want to connect to one server on port 1500 in this way:  telnet xxx.xxx.xxx.xxx 1500

    After I connect, I will send the login command in this way:  LOGIN:username:password; Then I want to read the output from the server and make sure that the connection is successful.

    After that I will send the commands and to close the connection, the below commands will be sent:

    exit;

    I tried many ways but all were not successful. Can you please help?

    BR//Hussain

    Thursday, December 11, 2014 6:39 PM

Answers