[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [milo-dev] UaTcpStatckClient.getEndpoints(link).get() not return a "real ip+port"
|
I am very grateful for such a detailed reply, thank you!
Date: 2019-07-02 20:17
Subject: Re: [milo-dev] UaTcpStatckClient.getEndpoints(link).get() not return a "real ip+port"
You can't force the server to return the real IP - you would have to correctly configure the servers for that to happen.
Hello,
My milo version is 0.2.1。
Here is my code:
EndpointDescription[] endpoints = UaTcpStackClient.getEndpoints(link).get();
EndpointDescription endpoint = Arrays.stream(endpoints)
.filter(e -> e.getSecurityPolicyUri().equals(securityPolicy.getSecurityPolicyUri()))
.findFirst()
.orElseThrow(() -> new Exception("create client failed"));
Debug information:
I pass "link"(opc.tcp://
192.168.88.210:53530) to get endpoints, But I get the Endpoints is "DESKTOP-VFA7NRS:53530"。
The opc server is running on windows, the opc client is running on linux. I add "DESKTOP-VFA7NRS" to the /etc/hosts to solve the problem in the past.
But now, I want to connect to three opc servers, the three servers all return same endpoints: "opc.tcp://otc:56000".
How can I get real endpont of "ip:port"?
Thank you!
jianjiao
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev