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: 135
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: 1010
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: 518

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 684

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1