Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
OPC UA Server returns too many endpoints in createSession
June 30, 2023
21:50, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Greetings,

we have the problem that a 3rd party OPC UA client rejects the connection to a Prosys SDK based server, because the endpoints from the create session call do not match those from the prior discoverEndpoints call.

The Prosys server has endpoints for an IP address, localhost, 127.0.0.1 and the hostname (one each per securityMode)

When the client calls getEndpoints for the IP address, the server correctly responds with all endpoints containing the IP address, but not the hostname, localhost, etc. On create session for the same IP address, the server returns *all* endpoints, also those not containing the IP address. As those endpoints are not identical to the ones from the prior getEndpoints call, the 3rd party client rejects the connection.

We currently disabled the security checks on the client, but this is obviously not a desired solution.

Is this a matter of the server configuration?

Thanks,
Hans-Uwe

June 30, 2023
22:52, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, it depends on which version of the SDK you are using in these applications and how are you configuring it.

We used to establish separate endpoints for different network interfaces (IP addresses) in the early versions, but since SDK v 2.0 the idea was to disconnect the EndpointUrls from BindAddresses in the server to avoid this kind of problems.

So, usually, you should define the Endpoints with a hostname only and then use BindAddresses to define to which network interfaces they are bound to without using the IP addresses in actual Endpoints.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1