Open EmmanuelP opened 2 years ago
I understand the client configuration is in ../client.conf
My bad, simple-client is built using ClientBuilder.
The problem is on fedora, locahost
resolves to ::1
and not 127.0.0.1
.
Changing server.conf
to consistantly use localhost
instead of 127.0.0.1
solves this issue.
diff --git a/samples/server.conf b/samples/server.conf
index 28174648..06a5df96 100644
--- a/samples/server.conf
+++ b/samples/server.conf
@@ -12,7 +12,7 @@ pki_dir: "./pki"
discovery_server_url: "opc.tcp://localhost:4840/UADiscovery"
tcp_config:
hello_timeout: 5
- host: 127.0.0.1
+ host: localhost
port: 4855
limits:
clients_can_modify_address_space: false
@@ -39,7 +39,7 @@ user_tokens:
user: unused
pass: unused1
discovery_urls:
- - "opc.tcp://127.0.0.1:4855/"
+ - "opc.tcp://localhost:4855/"
default_endpoint: ~
endpoints:
aes128-sha256-rsaoaep_sign:
Thanks I think this should be easy enough to fix although I haven't tested with IPv6 so I don't know if there are issues to be found with that form addressing, e.g. in cert info
Hi,
Trying to follow the example given in README, I have launched simple-server and simple client with:
and:
But the client fails to connect to the server:
This is the server console output:
I understand the client configuration is in
../client.conf
, but failed to find what to change that will let the client connect correctly tosimple-server
.I was able to connect to the server using UaExpert.
This is on fedora 35, using master opcua-rs (8701d1ff637acf4a6b0cee8094d882961ff3d821), whith untouched
server.conf
andclient.conf
.