Kepware OPCUA Server is Failed to Connect to Azuer IoT
- July 2, 2025
- 1 reply
- 1024 views
Issue: KepwareServerEx 6 failed to connect to Azure IoT Hub and device.
Environment:
KepwareServerEx 6
Channel: Simulator
Added a new Device : SimDevice1
OPCUA Tags :
1. Temperature / R1001 / Float
2. Counter / R1010 / Dword
I have enabled OPCUA Setting by right-clicking "KepwareServerEx" --> "OPC UA Configuration".
Then I have right Click on IoT Gateway and added new agnet with the below configuration.
Name : AzureIoTHubAgent
Broker URL: Enter ssl://[IoTHubName].azure-devices.net:8883.
Username: [IoTHubName].azure-devices.net/[DeviceID].
Password: Primary connection string Ex: HostName=iothubXXXXXXX.azure-devices.net;DeviceId=iothub-XXXX-device;SharedAccessKey=XXXXXXXX=.
Client ID: My Device ID (e.g., KepwareDevice).
Topic: devices/[DeviceID]/messages/events/ for publishing telemetry to IoT Hub.
QoS: Set to 1
Keep Alive: Default is 60 seconds.
I also open Windows firewall port "49320" and also verified OPCUA output in Prosys OPCUA browser "opc.tcp://vm-XXX-XXX:49320"
Still, kepware failed to connect Azure IoT Hub with the following error :
" Error IoT Gateway Failed to connect to server: '255.255.255.255:65535'. Please verify this connection information is correct and that the host can be reached."
Any suggestions why it failed to connect to Azure IoT Hub and Device?

