Firewall and MSDTC

Posted: May 27, 2014  |  Categories: Biztalk Uncategorized
Tags:

So we all know that DTC often provides problems, and it can be a hassle. I’ve spent so much time waiting for everything to get up, and I often find myself spending most of my time With the actual configuration of BizTalk.

It is important to maintain a high level of security, one of the ways to do this is to use a firewall between the servers, what type of communication is allowed between the machines and over what ports, TCP, UDP, ports or port ranges.

So I’m willing to share one of the elements that most often are the actual problem.

The MSDTC will by default use port 135, however, it will also use a wide range of ports to send and receive data. It is important that you configure both the BizTalk and SQL Server machines to allow these ports to be used and set up a port range.

When it comes to the ports I usually set up a port range of 100 ports, between 5000 to 5100. There are a few more changes you need to do, here is the walk-through (there is a link at the bottom where you can download the registry string).

  1. Open the 32bit registry by hitting start -> run and type “regedt32” (it is very important you store this in the 32bit registry and NOT in the regular “regedit
  2. Navigate to “HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Rpc
  3. Create a new Key (folder) and name it “Internet
  4. In this Key / folder, create the following:
  5. Create a new “REG_SZ” and name it “PortsInternetAvailable” and add a value equal to “Y
  6. Create a new “REG_SZ” and name it “UseInternetPorts” and add a value equal to “Y
  7. Create a new  “REG_MULTI_SZ” and name it “Ports” here, add the Port range you want, eq. 5000-5100.

When this is done, your registry looks like this:

portsFirewallDTC

All the ports you need to open for now is port 135 and port range 5000-5100 (TCP) between the servers.

If you don’t want to type all this you can download the registry file, remember you still have to open regedt32 and choose “Import” from the file menu.

Download the registry file here

 

  • Mahi

    Hi Trod,

    I tried this and didn’t solve the problem. Can you please suggest me any solution.

    • Tord Glad Nordahl

      What error are you getting?

One Platform Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

One Platform - Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

One Platform - Operations, Monitoring and Analytics Software
ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

Back to Top