Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on channel.OpenAsync() when using IP address #275

Open
hclf99 opened this issue Apr 9, 2024 · 2 comments
Open

Problem on channel.OpenAsync() when using IP address #275

hclf99 opened this issue Apr 9, 2024 · 2 comments

Comments

@hclf99
Copy link

hclf99 commented Apr 9, 2024

I see a strange behavior on connection to my server: When using the IP address e.g. opc.tcp://xxx.xxx.xxx.xxx:4840 sometimes I get connected sometimes not (randomly), but instead when I use the PC Network name e.g. opc.tcp://MYDEFPC:4840 it always connects without problems.
Using:
channel = new ClientSessionChannel
(
clientDescription,
// no x509 certificates
null,
// no user identity
new AnonymousIdentity(),
// the OPC server
server, ===> using addressee as described above
// no encryption
SecurityPolicyUris.None
);
Using version 3.2.3 on NET 4.8

By the way: The older version of my application used "channel = new UaTcpSessionChannel" without problems for both addressing methods

@awcullen
Copy link
Contributor

awcullen commented May 1, 2024

Thanks for the bug report. Could you share the exception you get when the client can't connect?

@hclf99
Copy link
Author

hclf99 commented Jul 15, 2024

Unfortunately there is no exception occurring, the connection attempt simple times out.... for example if I use this:
Task t = channel.OpenAsync();
t.Wait(10000);
...

after 10 sec it still says: CommunicationState.Opening and it stays forever in the opening state

I tried different OPC-UA servers for connection tests, on some it works without any problem on some (e.g Siemens S7) not (timeout)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants