Distributed Component Object Model (DCOM) uses Remote Procedure Call (RPC) dynamic port allocation. By default, RPC dynamic port allocation randomly selects port numbers above 1024. You can control which ports RPC dynamically allocates for incoming communication and then configure your firewall to confine incoming external communication to only those ports and port 135 (the RPC Endpoint Mapper port).
To control RPC dynamic port allocation, follow these steps:
- From the Start menu, point to Programs, point to Administrative Tools, and then click Component Services to start Component Services.
- Click to expand the Component Services and Computers nodes. Right-click My Computer, and then click Properties.
- On the Default Protocols tab, click Connection-oriented TCP/IP in the DCOM Protocols list box, and then click Properties.
- In the Properties for COM Internet Services dialog box, click Add.
- In the Port range text box, add a port range (for example, type 5000-5020), and then click OK.
- Leave the Port range assignment and the Default dynamic port allocation options set to Internet range.
- Click OK three times, and then restart your computer.
For additional information about port range allocation, click the article number below to view the article in the Microsoft Knowledge Base:
217351 PRB: DCOM Port Range Configuration ProblemsFor additional information about using Microsoft Distributed Transaction Coordinator with firewalls, click the article number below to view the article in the Microsoft Knowledge Base:
250367 INFO: Configuring Microsoft Distributed Transaction Coordinator (DTC) to Work Through a FirewallFor more information about using DCOM with firewalls, see the following Microsoft Web site:
Article ID: 300083 - Last Review: Mar 24, 2009 - Revision: 1