This article describes how to change the default listening port in the Terminal Server Web Client.
- Locate the Default.htm file in the %system root%\Web\TsWeb folder.
- Open Default.htm in Notepad or in another text editor.
- Locate the entries that start with "MsRdpClient.AdvancedSettings2".
- Add the following line after these entriesMsRdpClient.AdvancedSettings2.RDPPort = xxxxwhere xxxx is the new port.
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: