Share via


Event ID 1005 — Port Configuration

Applies To: Windows Server 2008 R2

By default, the RemoteApp and Desktop Connection Management service uses TCP port 5504 to communicate with the RD Web Access server. The port on which the RemoteApp and Desktop Connection Management service communicates must be available.

Event Details

Product: Windows Operating System
ID: 1005
Source: Microsoft-Windows-RemoteApp and Desktop Connection Management
Version: 6.1
Symbolic Name: TSCPUBSVR_RPC_NOINTERFACES_ERROR
Message: Error setting up the RPC interface: unable to listen on any protocols. Make sure that the port configured to be listened on (default is 5504) is available.

Error Code: %1

Resolve

Ensure that the port is not in use

The RemoteApp and Desktop Connection Management service uses TCP port 5504 by default. If this port is in use, you can resolve this issue by stopping the service that is using TCP port 5504. If that is not possible, you can change the port that the RemoteApp and Desktop Connection Management service uses.

To perform these procedures, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

Stop the service that is using TCP port 5504

The RemoteApp and Desktop Connection Management service uses port 5504 by default. If possible, you should stop any service that is using TCP port 5504 to communicate on the network.

To stop the service that is using TCP port 5504:

  1. On the RD Connection Broker server, open the Services console.
  2. To open the Services console, click Start, point to Administrative Tools, and then click Services.
  3. Locate the service, right-click the service name, point to All Tasks, and then click Stop.
  4. If the other service must communicate on TCP port 5504, you can change the port on which the RemoteApp and Desktop Connection Management service communicates by using the section named "Change the port that the RemoteApp and Desktop Connection Management service uses."

Change the port that the RemoteApp and Desktop Connection Management service uses

You must change the port that the RemoteApp and Desktop Connection Management service uses on both the RD Connection Broker server and the RD Web Access server.

To change the port on the RD Connection Broker server:

  1. On the RD Connection Broker server, open Registry Editor. To open Registry Editor, click Start, click Run, type regedit.exe, and then click OK.
  2. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\CentralizedPublishing.
  3. Double-click the CentralizedPublishing registry setting.
  4. Select the Decimal option.
  5. In the Value data box, type the port number that the RemoteApp and Desktop Connection Management service should use, and then click OK.
  6. Close Registry Editor.

You must edit the web.config file on the RD Web Access server and change the port number.

To change the port number on the RD Web Access server:

  1. On the RD Web Access server, open Notepad. To open Notepad, click Start, point to All Programs, point to Accessories, and then click Notepad.
  2. Click File, and then click Open.
  3. Click All Files.
  4. Navigate to %windir%\Web\RDWeb, and then double-click Web.config.
  5. Change the value in the following line to the desired port number: <add key="DefaultCentralPublishingPort" value="5504" />.
  6. Click File, and then click Save.
  7. Close Notepad.

Verify

To verify that RemoteApp and Desktop Connection Management can communicate with the RD Session Host servers and the RD Virtualization Host servers, do the following:

  • Verify that the RemoteApp and Desktop Connection Management service is started.
  • Log on to the RD Web Access server that is configured to use the RD Connection Broker server.

Verify that the RemoteApp and Desktop Connection Management service is started

The RemoteApp and Desktop Connection Management service is used to communicate with the RD Session Host and RD Virtualization Host servers on your network.

To verify that the RemoteApp and Desktop Connection Management service is started:

  1. On the RD Connection Broker server, open the Services console. To open the Services console, click Start, point to Administrative Tools, and then click Services.
  2. Locate the service named RemoteApp and Desktop Connection Management.
  3. Verify that the Status column for this service displays Started.
  4. After you have verified that the RemoteApp and Desktop Connection Management service is started, log on to the RD Web Access server as outlined in the section "Log on to the RD Web Access server that is configured to use the RD Connection Broker server."

Log on to the RD Web Access server that is configured to use the RD Connection Broker server

The RD Web Access server that is configured to use the RD Connection Broker server must be available to communicate with the RD Connection Broker server.

To log on to the RD Web Access server that is configured to use the RD Connection Broker server:

  1. On the RD Web Access server, open Remote Desktop Web Access Configuration. To open Remote Desktop Web Access Configuration, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Web Access Configuration.
  2. In the Domain\user name box, type a valid domain and user account name.
  3. In the Password box, type the password for the user account.
  4. Verify that you can successfully log on to the RD Web Access server by using Remote Desktop Web Access Configuration.

Port Configuration

Remote Desktop Services