---
title: How to set-up OPC-UA Server?
description: "Alleantia OPC-UA Server is designed to make the field device compatible with the OPC-UA standard,\nthus enabling secure communication with ERP, MES or SCADA"
---

[Skip to content](https://kb.alleantia.com/how-to-set-up-opc-ua-server#main-content)

English

Show submenu for translations

![Alleantia\_ATJ\_whitelogocolorbandtrasnpbg\_HR-Oct-21-2021-02-02-26-19-PM.png\]](https://kb.alleantia.com/hs-fs/hubfs/Alleantia_ATJ_whitelogocolorbandtrasnpbg_HR-Oct-21-2021-02-02-26-19-PM.png?height=40&name=Alleantia_ATJ_whitelogocolorbandtrasnpbg_HR-Oct-21-2021-02-02-26-19-PM.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Visit our site](https://www.alleantia.com/)

[Visit our site](https://www.alleantia.com/)

 Welcome to Alleantia, Industrial IoT Edge Gateway. How can we help you?

- There are no suggestions because the search field is empty.

1. [Alleantia Knowledge Base](https://kb.alleantia.com/)
2. [Stream Data - IIoT Apps](https://kb.alleantia.com/stream-data-iiot-apps)
3. [OPC UA](https://kb.alleantia.com/stream-data-iiot-apps#opc-ua)

# How to set-up OPC-UA Server?

## Alleantia OPC-UA Server is designed to make the field device compatible with the OPC-UA standard, thus enabling reliable and secure communication with ERP, MES or SCADA, which can read/write variables to the device's database.

<iframe data-hsv-src="https://play-eu1.hubspotvideo.com/v/6293978/id/38312237452" referrerpolicy="origin" sandbox="allow-forms allow-scripts allow-same-origin allow-popups" allow="autoplay; fullscreen;" style="position: absolute !important; width: 100% !important; height: 100% !important; left: 0; top: 0; border: 0 none; pointer-events: initial" title="HubSpot Video" loading="lazy" data-hsv-id="38312237452" data-hsv-style="" data-hsv-width="688" data-hsv-height="387" data-hsv-autoplay="false" data-hsv-loop="false" data-hsv-muted="false" data-hsv-hidden-controls="false" data-hsv-full-width="false"></iframe>

 

1° Step**: Check configured devices in Alleantia Gateway**

![opc-ua-server](https://kb.alleantia.com/hs-fs/hubfs/opcuagw.png?width=670&name=opcuagw.png)

2° Step: **Configuration OPC-UA**

From Configuration go to Communication tab and select **OPC-UA Gateway**

1. Select privacy policy / Anonymous or with Authentication ( in this case you must insert username and password);
2. Chose the number of Sampled memorized by IotScada. Used to calculate Mathematics Operation such as Max and Min Value Average and Dev Standard;
3. Chose the interval of the sampled;![opc-server-ua](https://kb.alleantia.com/hs-fs/hubfs/opcuagw_2.png?width=670&name=opcuagw_2.png)
4. Select the variables and values for each device to export via **OPC-UA**;![opcuagw\_3](https://kb.alleantia.com/hs-fs/hubfs/opcuagw_3.png?width=670&name=opcuagw_3.png)
5. Click **Enable** **OPC-UA Gateway**;
6. Save the configuration to **activate OPC-UA Server**;
7. You can download a mapping with your selected variables.

```

```

3° Step: **Connect** to the **OPCUA-Server** with **OPCUA-Client** such as **UA-Expert**.

1. Insert the endpoint desidered![opc-ua-gateway](https://kb.alleantia.com/hs-fs/hubfs/opcuagw_4.png?width=670&name=opcuagw_4.png)![gateway-opc-ua](https://kb.alleantia.com/hs-fs/hubfs/opcuagw_6.png?width=670&name=opcuagw_6.png)
2. Select privacy policy;
3. Click on save;
4. Connect to the server;
5. Explore the tree to search desired variables.

![iot-gateway-opc-ua](https://kb.alleantia.com/hs-fs/hubfs/opcuagw_8.png?width=670&name=opcuagw_8.png)  
4° Step: **Type of Variables**

The Variables must be boolean, string, or numeric. In the last case is possible to calculate Mathematic Operation and export this in separate Variable.

The Variables are organized in a folder represented the devices and an eventual block as  subfolders.

The identifier type of the variable is the global id or es globalid\_AverageValue in the case of the average value of the variable with this globalid.

The variables must be exported only in read mode or in read/write mode. In this last case is possible to write the variable directly in the client.

5° Step: **Write Variable using UA-expert**

Click on the variable and edit the variable.

**Endpoint**

The endpoint is the point that connects client and server

The endpoint is formatted by several information such as IP addresses.

Because is possible in one device have several network interfaces and each has a different IP address We configure n endpoint where n is the number of the network interfaces in your device. Be careful. Not all network interfaces are visible outside the computer for simple networking rules.

**Security**

The **OPC Server** is configurable with anonymous access or with authentication (username and password)

The **OPC-UA Gateway** uses RSA 2048 keys and a Selfsigned Certificate.

The port used by **OPC-UA Gateway**  is set as default 4840 but it is configurable by the user.

An eventually firewall used to protect network must be accept ingoing connection on port used by the **OPC Gateway**.

---

### **If you need support don't hesistate to contact us**

 

 

- [Industrial IoT Connectivity in 4 steps](https://kb.alleantia.com/industrial-iot-connectivity-in-4-steps#main-content)

    - [Industrial Connectivity in 5 minutes - Configuration Steps](https://kb.alleantia.com/industrial-iot-connectivity-in-4-steps#industrial-connectivity-in-5-minutes-configuration-steps)
- [Alleantia Platform Overview](https://kb.alleantia.com/alleantia-platform-overview#main-content)

    - [Alleantia Core](https://kb.alleantia.com/alleantia-platform-overview#alleantia-core)
    - [Cloud Portal](https://kb.alleantia.com/alleantia-platform-overview#cloud-portal)
    - [Machine Drivers](https://kb.alleantia.com/alleantia-platform-overview#machine-drivers)
    - [IIoT Apps - Connect Business Apps](https://kb.alleantia.com/alleantia-platform-overview#iiot-apps-connect-business-apps)
    - [Site Manager](https://kb.alleantia.com/alleantia-platform-overview#site-manager)
- [Alleantia Core](https://kb.alleantia.com/alleantia-core#main-content)

    - [Alleantia Core - Download and Configurations](https://kb.alleantia.com/alleantia-core#alleantia-core-download-and-configurations)
- [Licenses and Free Version](https://kb.alleantia.com/licenses-and-free-version#main-content)

    - [License Management](https://kb.alleantia.com/licenses-and-free-version#license-management)
    - [Alleantia Core - Free Version](https://kb.alleantia.com/licenses-and-free-version#alleantia-core-free-version)
- [Machine Drivers](https://kb.alleantia.com/machine-drivers#main-content)

    - [How can I create a driver with spreadsheet template??](https://kb.alleantia.com/machine-drivers#how-can-i-create-a-driver-with-spreadsheet-template)
    - [How can I create a driver with Driver Editor?](https://kb.alleantia.com/machine-drivers#how-can-i-create-a-driver-with-driver-editor)
    - [Private Library](https://kb.alleantia.com/machine-drivers#private-library)
    - [Machines connection configurations](https://kb.alleantia.com/machine-drivers#machines-connection-configurations)
- [Stream Data - IIoT Apps](https://kb.alleantia.com/stream-data-iiot-apps#main-content)

    - [API REST](https://kb.alleantia.com/stream-data-iiot-apps#api-rest)
    - [Modbus](https://kb.alleantia.com/stream-data-iiot-apps#modbus)
    - [OPC UA](https://kb.alleantia.com/stream-data-iiot-apps#opc-ua)
    - [AWS](https://kb.alleantia.com/stream-data-iiot-apps#aws)
    - [Boomi](https://kb.alleantia.com/stream-data-iiot-apps#boomi)
    - [Microsoft Azure](https://kb.alleantia.com/stream-data-iiot-apps#microsoft-azure)
    - [Dropbox](https://kb.alleantia.com/stream-data-iiot-apps#dropbox)
    - [MQTT](https://kb.alleantia.com/stream-data-iiot-apps#mqtt)
    - [SQL](https://kb.alleantia.com/stream-data-iiot-apps#sql)
    - [OneDrive for Business](https://kb.alleantia.com/stream-data-iiot-apps#onedrive-for-business)
    - [TeamViewer](https://kb.alleantia.com/stream-data-iiot-apps#teamviewer)
- [Alleantia Certified Hardware](https://kb.alleantia.com/alleantia-certified-hardware#main-content)

    - [Advantech](https://kb.alleantia.com/alleantia-certified-hardware#advantech)
    - [Cisco](https://kb.alleantia.com/alleantia-certified-hardware#cisco)
    - [Dell](https://kb.alleantia.com/alleantia-certified-hardware#dell)
    - [Eurotech](https://kb.alleantia.com/alleantia-certified-hardware#eurotech)
    - [Lenovo](https://kb.alleantia.com/alleantia-certified-hardware#lenovo)
    - [Portwell](https://kb.alleantia.com/alleantia-certified-hardware#portwell)
    - [Stratus](https://kb.alleantia.com/alleantia-certified-hardware#stratus)
- [Simulators and Starter Kit Industria 4.0](https://kb.alleantia.com/simulators-and-starter-kit-industria-4-0#main-content)

    - [Simulators - PLCs, CNC, Energy meters](https://kb.alleantia.com/simulators-and-starter-kit-industria-4-0#simulators-plcs-cnc-energy-meters)
    - [Starter Kit Industria 4.0](https://kb.alleantia.com/simulators-and-starter-kit-industria-4-0#starter-kit-industria-4-0)
- [Edge Operational Applications](https://kb.alleantia.com/edge-operational-applications#main-content)

    - [Cobot Smart Service](https://kb.alleantia.com/edge-operational-applications#cobot-smart-service)
- [FAQs - Trouble Shooting](https://kb.alleantia.com/faqs-trouble-shooting#main-content)

    - [Configurations](https://kb.alleantia.com/faqs-trouble-shooting#configurations)
    - [System Setup](https://kb.alleantia.com/faqs-trouble-shooting#system-setup)
    - [Interfaces to IIoT Apps](https://kb.alleantia.com/faqs-trouble-shooting#interfaces-to-iiot-apps)
    - [Interfaces to Industrial Devices](https://kb.alleantia.com/faqs-trouble-shooting#interfaces-to-industrial-devices)
- [Connectivity](https://kb.alleantia.com/connectivity)

[![Chill listening crop-3](https://kb.alleantia.com/hs-fs/hubfs/Alleantia_ATJ_transpbg_HD-1.jpg?width=120&height=55&name=Alleantia_ATJ_transpbg_HD-1.jpg "Chill listening crop-3")](http://www.alleantia.com)

© 2024 Alleantia s.r.l

<https://www.linkedin.com/company/2293482/admin/> <https://twitter.com/Alleantiasrl> <https://www.facebook.com/Alleantia>

Copyright © 2026, ALLEANTIA SRL

```json
{
  "@context" : "https://schema.org",
  "@type" : "VideoObject",
  "caption" : {
    "@type" : "MediaObject",
    "contentUrl" : "https://kb.alleantia.com/media-transcripts/38312237450/en.vtt",
    "inLanguage" : "en",
    "name" : "en Captions"
  },
  "contentUrl" : "https://6293978.fs1.hubspotusercontent-eu1.net/hubfs/6293978/OPC_UA_Server_Set_up_03_12_20.mp4",
  "dateModified" : "2025-09-29T12:17:07.783Z",
  "duration" : "PT2M51S",
  "height" : 1080,
  "name" : "OPC_UA_Server_Set_up_03_12_20",
  "thumbnailUrl" : "https://6293978.fs1.hubspotusercontent-eu1.net/hubfs/6293978/OPC_UA_Server_Set_up_03_12_20.mp4/medium.jpg",
  "uploadDate" : "2020-12-03T10:38:22.381Z",
  "width" : 1920
}
```