Unable to connect HiveMQ Edge to OPC UA simulator

I am evaluating he HiveMQ Edge (free edition) as a container image on Docker Desktop for Mac. To check out OPC UA connectivity, I am using the free Prosys OPC UA simulator server, which runs straight on Mac OS.

I am getting connection refused (see error log below, jave stack trace removed for brevity). I checked if replacing the host name in the OPC UA Server URI with host.docker.internal to make sure there is no DNS resolving issue, but I am getting the same error.

I suspect I am missing something in the Edge protocol adapter configuration. Or in the container setup?
The ProSys OPC UA Server silmulator runs out of the box and with the ProSys OPC UA Monitor I can connect (anonymous) see all the simulated tags updating, so assuming that is all fine. Or is there something I need to configure there too, in order for the protocol adapter to work?
The OPC UA Simulation Server show this as the connection address: opc.tcp://MacBook-Air-207.local:53530/OPCUA/SimulationServer

Part of the HiveMQ Edge config.xml file (created with the UI):
<protocol-adapter>
            <adapterId>opc-ua-sim-server</adapterId>
            <protocolId>opcua</protocolId>
            <configVersion>1</configVersion>
            <config>
                <opcuaToMqtt>
                    <publishingInterval>1000</publishingInterval>
                    <serverQueueSize>1</serverQueueSize>
                </opcuaToMqtt>
                <overrideUri>true</overrideUri>
                <security>
                    <policy>NONE</policy>
                </security>
                <tls>
                    <enabled>false</enabled>
                </tls>
                <uri>opc.tcp://host.docker.internal:53530/OPCUA/SimulationServer</uri>
                <id>opc-ua-sim-server</id>
            </config>
            <tags>
                <tag>
                    <name>counter</name>
                    <description>no description present.</description>
                    <definition>
                        <node>ns=3;i=1001</node>
                    </definition>
                </tag>
                <tag>
                    <name>random</name>
                    <definition>
                        <node>ns=3;i=1002</node>
                    </definition>
                </tag>
            </tags>
            <southboundMappings/>
            <northboundMappings>
                <northboundMapping>
                    <topic>opc-ua-sim-server/counter</topic>
                    <tagName>counter</tagName>
                    <maxQos>0</maxQos>
                    <messageHandlingOptions>MQTTMessagePerTag</messageHandlingOptions>
                    <includeTagNames>true</includeTagNames>
                    <includeTimestamp>true</includeTimestamp>
                    <mqttUserProperties/>
                    <messageExpiryInterval>9007199254740991</messageExpiryInterval>
                </northboundMapping>
                <northboundMapping>
                    <topic>opc-ua-sim-server/random</topic>
                    <tagName>random</tagName>
                    <maxQos>0</maxQos>
                    <messageHandlingOptions>MQTTMessagePerTag</messageHandlingOptions>
                    <includeTagNames>false</includeTagNames>
                    <includeTimestamp>true</includeTimestamp>
                    <mqttUserProperties/>
                    <messageExpiryInterval>9223372036854775807</messageExpiryInterval>
                </northboundMapping>
            </northboundMappings>
        </protocol-adapter>
    </protocol-adapters>

2025-08-13 09:19:33.268 | 2025-08-13 16:19:33,266 INFO - Starting protocol-adapter ‘opc-ua-sim-server’.
2025-08-13 09:19:33.271 | 2025-08-13 16:19:33,270 INFO - Starting OPC UA protocol adapter opc-ua-sim-server
2025-08-13 09:19:33.272 | 2025-08-13 16:19:33,270 INFO - Using default anonymous identity provider
2025-08-13 09:19:33.346 | 2025-08-13 16:19:33,346 INFO - TLS is enabled: false
2025-08-13 09:19:34.366 | 2025-08-13 16:19:34,362 ERROR - Unable to connect and subscribe to the OPC UA server
2025-08-13 09:19:34.366 | org.eclipse.milo.opcua.stack.core.UaException: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
[…]
2025-08-13 09:19:34.366 | Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
2025-08-13 09:19:34.366 | Caused by: java.net.ConnectException: Connection refused
[…]
]2025-08-13 09:19:34.367 | 2025-08-13 16:19:34,365 ERROR - Error starting protocol adapter
2025-08-13 09:19:34.367 | java.util.concurrent.CompletionException: UaException: status=Bad_ConnectionRejected, message=io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
[…]
]2025-08-13 09:19:34.367 | Caused by: org.eclipse.milo.opcua.stack.core.UaException: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
[…]
2025-08-13 09:19:34.367 | Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
2025-08-13 09:19:34.367 | Caused by: java.net.ConnectException: Connection refused
[…]
2025-08-13 09:19:34.369 | 2025-08-13 16:19:34,367 ERROR - Error starting adapter with id opc-ua-sim-server
2025-08-13 09:19:34.369 | java.util.concurrent.CompletionException: UaException: status=Bad_ConnectionRejected, message=io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
[…]
2025-08-13 09:19:34.369 | Caused by: org.eclipse.milo.opcua.stack.core.UaException: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
[…]
2025-08-13 09:19:34.369 | Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: MacBook-Air-207.local/127.0.0.1:53530
2025-08-13 09:19:34.369 | Caused by: java.net.ConnectException: Connection refused
[…]
]2025-08-13 09:19:34.370 | 2025-08-13 16:19:34,368 WARN - Protocol-adapter ‘opc-ua-sim-server’ could not be started, reason: unknown

Hi @pbodifee

I am getting the same error. Please report if you like to GitHub · Where software is built

Best,

Dasha from The HiveMQ Team

Done. See here: Connection to ProSys OPC UA Simulation Server refused · Issue #1082 · hivemq/hivemq-edge · GitHub