Java OPC-UA Client Eclipse Milo endpoint URL changes to localhost
I am using Java OPC-UA client Eclipse Milo . Whenever I create a session using endpoint URL of server, method UaTcpStackClient.getEndpoints() changes URL to localhost . String endpointUrl = "opc.tcp://10.8.0.104:48809"; EndpointDescription[] endpoints = UaTcpStackClient.getEndpoints(endpointUrl).get(); EndpointDescription endpoint = Arrays.stream(endpoints) .filter(e -> e.getSecurityPolicyUri().equals(securityPolicy.getSecurityPolicyUri())) .findFirst().orElseThrow(() -> new Exception("no desired endpoints returned")); However value of endpoint.getEndpointUrl() returns opc.tcp://127.0.0.1:4880