Disconnect from a Telnet Server

Updated: March 24, 2010

Applies To: Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista

When you have finished whatever you needed to do on the Telnet server disconnect your session.

Any user account can be used to complete this procedure.

You can perform this procedure using either of the following methods:

  1. In your Telnet session, close any program you are currently running.

  2. At the Microsoft Telnet> command prompt, type the command:


  3. After displaying the message Connection to host lost, the Telnet Client service stops.

  • The command used to log off of the Telnet server varies based on the operating system and Telnet Server software running on the Telnet server. The command shown here is appropriate for the Telnet Server service provided with Windows.

  1. On the Telnet client, switch to command mode. See Switch Between Session Mode and Command Mode.

  2. At the Microsoft Telnet> command prompt, type c (for close), and then press ENTER.

  3. At this point, you can do one of the following:

  • Disconnecting from the Telnet server without first closing the program you are running and saving your documents can result in data loss. Run this procedure only if your data is saved and your programs are closed, or if the server has stopped responding and you cannot close your programs.

See Also

Community Additions