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?
Solved! Go to Solution.
Below configration solution work for me.
Greetings @SW_10703260,
I hope you're doing well.
To help resolve the issue, I would suggest following the steps outlined below:
Note:- Please verify the Network Adapter is set correctly, The path is Agent -> Properties -> Server -> Network Adapter
If you have any questions or need further assistance, please feel free to contact us.
Thanks for the help.
My KEPServerEX 6.17 Non-Licence Copy.
I cannot find the below path in the properties of the IoT Gateway agent.
In the agent properties, "Server -> Network Adapter" is missing.
Agent -> Properties -> Server -> Network Adapter
Please refer to the attached screenshot of my agent's properties.
Greetings @SW_10703260,
I hope you're doing well.
The "Network Adapter" setting is only available when the agent type is configured as a REST Server. If your agent is not set to REST Server, this section will not appear.
Below configration solution work for me.