nauful / LibUA

Open-source OPC UA client and server library
Apache License 2.0
253 stars 90 forks source link

Adress like opc.tcp://172.XXX.XXX.XXX:4880/Staubli #114

Closed game4automation closed 1 year ago

game4automation commented 1 year ago

Hi, I am wondering how we could access an opcua server with the client on an adress like opc.tcp://172.XXX.XXX.XXX:4880/Staubli. I don't see a parameter besides the IP Adress to configure this adress on the connection. Do you have any hint?

Thanks a lot Thomas

nauful commented 1 year ago

Could you connect to that via UaExpert with security mode set to None and share a Wireshark capture?

I wonder if it's just a node off the root to change your view of the address space and not actually part of the connection process.

eliovalenzuela commented 1 year ago

Hello, here is the Wireshark capture. The server address is 192.168.31.99, and the UaExpert client is at 192.168.31.184. UAExpert_CS9.zip

nauful commented 1 year ago

For DemoClient, you can use the second constructor option which includes path ("Staubli"):

public DemoClient(string Target, int Port, string Path, int Timeout)
    : base(Target, Port, Path, Timeout)
{
    LoadCertificateAndPrivateKey();
}

This should handle CreateSessionRequest and pass that case. Let me know if that works.