Error Message: Error while connecting to the host - could not open a connection to host on port 23
Updated: November 16, 2007
Applies To: Windows Server 2008
This problem typically occurs when the Telnet server is configured to listen on a different TCP port number than the Telnet client is using to attempt a connection.
Telnet uses TCP port 23 by default when communicating from the client to the server. The port number used can be changed by an administrator. If it is changed, the client must know what number to instruct the Telnet client to use.
The error message will display the port number that was used in the attempt to connect. This can be caused by either of the following:
The TCP port number used by the client in its connection attempt is not the same port number configured to be used by the Telnet server.
The Telnet server is not started, and so is not listening on the expected port number.
To resolve this problem, do one of the following:
If the Telnet server is not started, see Enable the Telnet Server Service in the Telnet Operations Guide.
If the Telnet server is configured to use a TCP port number other than the default of 23, then the Telnet client must specify that port number in the connection attempt. See Connect to a Telnet Server as a Standard User in the Telnet Operations Guide, and use the [port] option documented there.
Configure the Telnet server to use the port number expected by the Telnet clients. See Configure the TCP Port Number Used by Telnet Server in the Telnet Operations Guide.
To confirm the port number that the Telnet server is currently listening on, run the command netstat -ab from an elevated command prompt (which was opened by using the Run as administrator option). The output should include an entry similar to the following:
TCP [::]:23 computername:0 LISTENING
The entry might also say ESTABLISHED instead of LISTENING.
The number in the second column indicates the port number on which the service is listening. If the entry for tlntsvr.exe is missing, then the service is likely not started.
ConceptsError Message: The user has not been granted the requested logon type at this computer
Error Message: Access Denied - Specified user is not a member of the TelnetClients group
Error Message: The user's password must be changed before logging in the first time
Error Message: Telnet Server allows NTLM authentication only
You Cannot Connect to Network Drives by Using Current Logon Credentials
You Cannot Access Drive Letters Mapped by Others in Separate Telnet Sessions
Characters and Lines on the Telnet Client Display are Misaligned
The Cursor Loses Alignment with the Prompt
System Error 1058: Telnet Service Fails to Start