Connecting CIUMON to an OPC DA server on another machine

Connecting CIUMON to an OPC DA server on another machine

DBDOC can connect to an OPC DA server running remotely on a separate machine on the network. Communication between the machines utilizes DCOM which requires specific firewall and user account privileges to be applied so that no traffic is blocked. Three main steps must be done for remote communication to work smoothly:

  • Setting up User Accounts
  • Opening up ports to bypass firewall
  • Granting User Permissions

Setting up User Accounts

If both computers are members of the same domain authentication will be handled automatically. If your network uses a workgroup, you will have to set up identical user accounts on either machine (same username and password). Both user accounts should be given administrator privileges.

Opening up ports to bypass firewall

DCOM traffic will be blocked by the firewall unless the ports are explicitly opened. You will need to open port 135 for TCP and a selection of ports within the range used for DCOM (1024-65535) on both machines.

  1. Open regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc
  2. If there is no internet folder you will need to make one
  3. Right-click Rpc and go new->key. Enter "Internet"
  4. Left-click on internet so it is selected and right-click in the whitespace
  5. Select new -> Multi-string value and name it Ports
  6. Double-click on Ports and enter a value of 7333-7777 (Or any other range of your choosing as long as it is within the ports used for DCOM)
  7. Right-click on the whitespace again and go New -> String value and name it "PortsInternetAvailable"
  8. Double-click on PortsInternetAvailable and enter the value "Y"
  9. Make another string value named "UseInternetPorts" and set its value to "Y"
  10. Do a search in windows for "Windows Defender Firewall with Advanced Security" and open it
  11. Click on "Inbound rules" on the left pane and then make a new rule
  12. From the list select Port, then click next
  13. TCP should be selected by default, then in the specific local ports section enter "135, 7333-7777" then click next
  14. Select "Allow the connection" then click next
  15. Leave all three checkboxes selected and then click next
  16. Add a name and description to your rule

Granting User Permissions

Both user accounts must be given access and launch privileges as well as their authentication levels raised to packet integrity to meet Microsoft security regulations.

  1. Press windows+R and type dcomcnfg.exe then hit enter to open up Component Services
  2. Under Component services in the left pane or middle area select Computers -> my computer -> DCOM Config
  3. In the list find your OPC server application and right-click on it, then go to properties
  4. Under the security tab for both "Launch and Activation Permissions" and "Access Permissions" select Customize then hit Edit
  5. Under group or user names click Add..
  6. Enter your user account name and click Check Names, once it finds it hit OK
  7. Select the user you just added and allow permissions for all the selections
  8. Also change the permissions for the administrators group to allow everything including remote access
  9. Under the general tab select "Packet Integrity" for authentication level (needed after Microsoft security hardening updates in 2024)
  10. Under the identity tab select "The interactive user" and hit OK
  11. In the left pane right-click on My Computer and select properties
  12. Go to the default properties tab and change the default authentication level to "Packet Integrity"
  13. Make sure "Enable Distributed COM on this computer is enabled
  14. In the COM Security tab edit limits for Access Permission and Launch Permission
  15. Like before add your user and give them allow permissions