Configure the TCP Port Number Used by Telnet Server
Applies To: Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista
You can use this procedure to change the port number that the Telnet Server service listens to for client requests.
By default, Telnet Server listens on TCP port 23. If you change this, you must inform your clients of the new number so that they can include it in their requests to connect. If your users do not request the correct port number when they try to connect, the connection attempt fails.
Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.
- At a command prompt, type the following, and then press ENTER:
tlntadmn [\\server] config port=PortNumber
- \\serverThe name of the computer running Telnet Server whose port number you want to change. If this parameter is not present, then the command runs against the Telnet Server service on the local computer.
- config port=PortNumberSpecifies that you want to change the port number to the value specified by PortNumber.
- Tlntadmn.exe must be run at a command prompt that was opened by using the Run as administrator option. If you do not run it at an elevated command prompt, you receive an Access is denied message.
- The Tlntadmn.exe tool is installed with Telnet Server, so it might not be present on a computer that does not have Telnet Server installed.
- You can determine the current port number used by Telnet Server by running the following command:tlntadmn [\\server]Windows displays several current settings, including the port number.