How to Change the Listening Port in the Windows Terminal Server Web Client

Article translations Article translations
Article ID: 326945 - View products that this article applies to.
This article was previously published under Q326945
Expand all | Collapse all

SUMMARY

By default, Windows Terminal Server uses TCP port 3389 for client connections. As a security option, you may want to change this port.

This article describes how to change the default listening port in the Terminal Server Web Client.

MORE INFORMATION

To change the Terminal Server listening port in the Windows XP Service Pack (SP) 1 (or later) and Windows Server 2003 clients, follow these steps:
  1. Locate the Default.htm file in the %system root%\Web\TsWeb folder.
  2. Open Default.htm in Notepad or in another text editor.
  3. Locate the entries that start with "MsRdpClient.AdvancedSettings2".
  4. Add the following line after these entries
    MsRdpClient.AdvancedSettings2.RDPPort = xxxx
    where xxxx is the new port.
To make sure that you can connect with the new setting, append the port number to that of the published URL (that is, www.xxx.xxx.xxx:PortNumber).

NOTE: Before SP1 the Windows XP client used the Connect.asp file, not Default.htm, for these settings. You can make the change described in step 4 to Connect.asp, but Microsoft recommends that instead you upgrade the Terminal Services Web client as described in the following Microsoft Knowledge Base article:
327521 MS02-046: Buffer Overrun in TSAC ActiveX Control Might Allow Code Execution
For additional information about how to change the default listening port in Terminal Server, click the article number below to view the article in the Microsoft Knowledge Base:
187623 How to Change Terminal Server's Listening Port

Properties

Article ID: 326945 - Last Review: February 28, 2007 - Revision: 8.4
APPLIES TO
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows XP Professional SP1
  • Microsoft Windows Small Business Server 2003 Premium Edition
  • Microsoft Windows Small Business Server 2003 Standard Edition
Keywords: 
kbinfo KB326945

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com