Hi,
is there a way to read the network address of a client when he calls an action on the server, e. g. a method call? I have seen the post 'Getting Client IP from UaSession?' (https://forum.unified-automation.com/post3277.html), but have not found an equivalent for .NET.
Best regards
Get client network address
Moderator: uasdknet
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: Get client network address
Hi,
the hostname or IP is used in OPC UA certificates for identifying/validation if the caller really matches the certificate.
Eventhough not knowing what you exactly want to do, it seems NOT a good idea to identify callers of UA Methods by their IP address, that would be totally wrong from an OPC UA perspective.
In UA we have Authentication and Autorisation mechanizms that are standard conform and should be used. If you want to identify a Client, there is the session (including sessionID), and on the individual Node (UA Method) in the server you can even have additional user access rights (including role based permissions).
the hostname or IP is used in OPC UA certificates for identifying/validation if the caller really matches the certificate.
Eventhough not knowing what you exactly want to do, it seems NOT a good idea to identify callers of UA Methods by their IP address, that would be totally wrong from an OPC UA perspective.
In UA we have Authentication and Autorisation mechanizms that are standard conform and should be used. If you want to identify a Client, there is the session (including sessionID), and on the individual Node (UA Method) in the server you can even have additional user access rights (including role based permissions).
Best regards
Unified Automation Support Team
Unified Automation Support Team