OPC UA server
An OPC UA server lets SCADA, HMI, MES and historian software read WiConnector's tags with any OPC UA client (Ignition, WinCC, AVEVA, Kepware's client, UaExpert, Node-RED and others): browse the tag tree, read, subscribe to changes, read history and, when you allow it, write. To read values from someone else's OPC UA server into tags, use the OPC UA client connector instead (see Connectors).

You can run several servers, each on its own port, for example one for the plant SCADA with every tag and one for a
contractor with a few. Each is a module on the Modules page with its own licence (licence type OpcUaServer; without
one it runs as a 3-hour demo).
Add a server
- Open Services and choose OPC UA server in the list on the left. Each server is a card with its state, its endpoint URL, how many tags it shows and how many clients are connected.
- Press Add OPC UA server, pick the Tags clients may see, check Security and Sign-in (below), and press Add OPC UA server. It starts at once. A notification at the bottom confirms it, and the page scrolls back up to the new server's card, which glows for a moment.
- Give your clients the endpoint URL shown next to Running at, for example
opc.tcp://plant-pc:4840/WiConnector(the copy button copies it). Open the port in the Windows firewall.
Save and apply restarts the server with the new settings (clients reconnect by themselves). Delete server closes it; its certificates stay on disk.
Endpoint
| Setting | Meaning |
|---|---|
| Port | 4840 is the usual OPC UA port. Each server needs its own. If another program holds the port, the server shows Not running with the reason and starts as soon as the port is free |
| Path | What follows the port in the URL (WiConnector). May be empty |
| Host name | Empty: this computer's name. In Docker or behind NAT, enter the name or IP address clients use, so the endpoint and certificate match it |
| Root folder | The folder under Objects that holds the tags (WiConnector) |
| Most clients, fastest publishing interval | Limits for sessions and subscriptions |
What clients see
Under Objects / WiConnector there is one folder per level of the tag path and one variable per tag:
| Tag | Node id | Folder node id |
|---|---|---|
Plant/Line1/Speed | ns=2;s=Plant/Line1/Speed | ns=2;s=Plant/Line1/ |
The namespace is urn:altrex:wiconnector:tags (index 2). Each variable has the tag's data type (Boolean, Int16, UInt16,
Int32, UInt32, Float, Double, String; scaled numbers are Double), its description, and its units as the
EngineeringUnits property. The value's status code is the tag's quality: Good, Uncertain, or Bad with a reason
(BadCommunicationError when the device does not answer, BadOutOfService when the device or connector is stopped,
BadWaitingForInitialData before the first read). The source timestamp is the time the value was read from the
device.
Tags you add, delete or change appear and disappear in the server within a second, without disconnecting anyone. The Node ids table under Tags shows the first few, with their types.
Security
| Setting | Meaning |
|---|---|
| Security modes | Sign and encrypt (recommended), Sign, and None (no security: only on a closed network, for clients that cannot do better). None is off by default |
| Security policies | For Sign and Sign and encrypt: Basic256Sha256 (most clients), Aes128_Sha256_RsaOaep and Aes256_Sha256_RsaPss (newer clients). Basic256 and Basic128Rsa15 are deprecated, only for old clients |
| Trust every client certificate the first time it connects | Off by default. Handy while commissioning; turn it off afterwards |
Certificates
A secure connection needs both sides to trust each other's certificate.

- This server's certificate is created the first time the server starts. Clients that ask, accept it; for one that does not, press Download and add the file to the client's trusted list.
- When a new client connects with security, it is refused at first and its certificate appears under Rejected clients. Check the name and press Trust: the client can connect straight away. Reject moves a trusted client back; the trash button deletes a certificate.
- Add a client certificate… adds a client's certificate file (.der, .cer, .crt or .pem) to the trusted list before it connects.
- Client certificates need keys of at least 2048 bits, as the security policies require.
- Another OPC UA server on the same computer that tries to register with a discovery server on port 4840 can also show up under Rejected clients. You can delete it; it is not a client.
Files are in data/opcua-server/pki/<server name> (own, trusted, rejected).
Sign-in
| Setting | Meaning |
|---|---|
| WiConnector users | Clients sign in with a user name and password from the Users page. The password is always sent encrypted, also on an endpoint without security. Five wrong passwords lock the user for five minutes, as in the web page; disabled users and users who must still change their password are refused |
| Anonymous clients | Clients connect without a user name. They only read |
What a signed-in client may do follows the user's role: Viewers read; Operators, Engineers and Administrators may also write the tags allowed for writes. Create a user for each SCADA or HMI, so the logs show who wrote what.
Writes from OPC UA clients
Off by default: every tag is read only. Turn on Let OPC UA clients write tags and pick the tags. A tag is writable in OPC UA only when it is picked here, is a Read and write tag in WiConnector and has a device behind it; anonymous clients and Viewers see it as read only. A write goes to the device; if the device refuses or does not answer within 10 seconds, the client gets an error. Every write is logged (Logs, Communication, OPC UA server …) with the user's name.
History
When the historian is running, tags with History on are marked as historizing and clients read their stored raw values with HistoryRead, in pages of up to 10 000 values. Processed (aggregate) history is not offered. Turn Answer HistoryRead from the historian off to hide history from this server.
Status
The first section shows Running at with the URL, or Not running with the reason, and counts of tags, clients, writes (and refused writes) and history reads. Connected clients lists each client's application name, session, user, security, connection time, subscriptions and monitored items. Connections, sign-ins, refused certificates and writes are in Logs under Communication.
Troubleshooting
| What you see | What to check |
|---|---|
| Not running: the port is in use | Another program (another OPC UA server, Kepware, an LDS) listens on the port. Choose another port or stop it |
| The client cannot connect at all | The firewall on the WiConnector computer, the port, and that the client uses the URL shown |
BadSecurityChecksFailed / certificate untrusted | The client's certificate is under Rejected clients: trust it. Or the client does not trust the server's certificate: trust it in the client |
BadIdentityTokenRejected | The client signs in anonymously but only users are allowed, or the other way round |
BadUserAccessDenied on sign-in | Wrong user name or password, a locked or disabled user, or a user who must change their password in the web page first |
BadUserAccessDenied / BadNotWritable on write | Writes are off, the tag is not picked for writes or is read only, or the user is a Viewer or anonymous |
| The host name in the endpoint is wrong | Set Host name to the name or IP address clients use |