Skip to main content

Required Environment

Things to Prepare Before Launching an OPC UA App — Network / Certificates / Time Synchronization / Server / Client Tools / SDK Installation. If even one of these is wrong, the first connection will fail.

Everything You Need in One Place

Install at least two items during the development phase: one peer OPC UA Server (recommended Darra Software PLC Built-in OPC UA Server, port 4840) + one client GUI (Darra OPC UA Client GUI). You can get started in just 5 minutes.

Internet​

  • Default port: TCP 4840 (opc.tcp Agreement)
  • HTTPS Port: TCP 443 (opc.https Protocol, Main Use SDK opc.tcp)
  • Allow traffic in both directions through the firewall on port 4840
  • Windows Firewall: Allow Inbound Rules for Processes OPC UA Server
  • NAT / Port Forwarding: To allow public network access, port 4840 must be forwarded, and you must ensure ApplicationUri that it matches SAN the certificate.

Certificate Generation (Required for Production)​

The "None" mode is intended only for development and testing on the internal network. In a production environment, you must use "Sign" or SignAndEncrypt:

  • Client Certificate: PFX Format (including private key), Recommended RSA 2048 bits
  • Server Certificate: Managed by the server; the client can use TOFU (Trust On First Use) upon its first connection
  • Mutual Trust: The client's public key (.der/.pem) must be imported into the server's trusted/ directory
  • subjectAltName URI: Must include the field URI:urn:<vendor>:<product>:<instance>, which must match ApplicationUri
  • Validity Period: Default is 365 days; configurable; must be rotated before expiration

For detailed generation steps, see Enable Encryption.

Time Synchronization (NTP)​

Time discrepancies exceeding ~10 minutes will be rejected

OPC UA Sign / SignAndEncrypt validates timestamps; requests are rejected when the clock skew between client and server exceeds a few minutes (BadCertificateTimeInvalid etc.). Production environments must run NTP, keeping the skew to the order of seconds.

opposite end OPC UA Server​

Originally SDK was Client only, Joint debugging requires a remote server. Typical sources:

  • Darra Software PLC Built-in OPC UA Server — Port 4840, PLC Service runs alongside, directly exposing the PLC's actual tags (DB /I/Q/M) Applicable to: Verifying client code for reading, writing, subscribing to, and calling methods on PLC data
  • The customer currently has OPC UA Server — Third-party controllers deployed by the customer, SCADA with endpoints in the form of DCS opc.tcp://<ip>:<port> Applicable: Use this SDK to integrate the client's existing system with your own application

Note: Do not assume that any "debugging simulation server" is a downloadable product—internal integration testing tools are not released to the public.

Client Tools​

Recommended During the Debugging Phase Darra OPC UA Client GUI Desktop Tool for Viewing — Our in-house tool, featuring tree view / subscriptions / history / events, using the MiSans font with Chinese support.

SDK Installation​

Select one based on the target language: NuGet (C#), pip (Python), Maven (Java), CMake (C/C++), cargo (Rust). For more details, see Quick Start.

Checklist​

  • Allow port 4840 through the firewall
  • NTP Time synchronization configuration OK (difference < 30 seconds)
  • The test server has started (GUI the client can Browse generate the node tree)
  • (Production) Client PFX certificate generated; ApplicationUri SAN.URI matches
  • (Production) The server has imported the trusted client's public key
  • The SDK prints the version number correctly (verify the installation)