gopcua / opcua

Native Go OPC-UA library
MIT License
856 stars 259 forks source link

ReverseHello, invalid endpoint #719

Open vruge opened 5 months ago

vruge commented 5 months ago

In my case I have a server running on 192.168.178.101 and my plan is to use a reverse connection. From the server I get a message like RHEFZ,urn:192.168.178.101:PhoenixContact:eUAServeropc.tcp://192.168.178.101:4840 My go application is running on 192.168.178.20.

Since 192.168.178.101 != 192.168.178.20 I running in the error.


if rhe.EndpointURL != endpoint {
}

https://github.com/gopcua/opcua/blob/main/uacp/conn.go#L318

Am I using your application incorrectly here?