Rank: Newbie
Joined: 10/9/2015(UTC) Posts: 1
Was thanked: 1 time(s) in 1 post(s)
|
Hello, I am trying to establish connection to my Kepware server running on Windows 8 from a Linux Ubuntu 14.04 virtual machine. The situation is as follows: If I use a pre-built OPC client and simultaneously monitor traffic on the server via Wireshark, I see when the client both requests endpoints and then establishes connection. When I use the Matrikon SDK and step through my own code, I see the same activity as I did with the pre-built OPC client up through the point of where I request the endpoint. But on running Code:
Result result;
bool success = spConnection->Connect(result);
std::cout << result.GetCode() << std::endl;
my_connection->, no more activity is observed and I get a code print out of 2164654080. Any idea why I am not observing any activity over Wireshark when I run Connect(), and what the code means? I could not find anything in the documentation. Thanks! Liz
|
 1 user thanked Elizabeth Rapoport for this useful post.
|
|
|
Rank: Advanced Member
Joined: 11/28/2014(UTC) Posts: 37
Was thanked: 13 time(s) in 11 post(s)
|
Hi Liz,
You're right that the error code isn't documented in our SDK. That's a deficiency we have to correct.
The code is 0x81060000, and it means 'unknown host'. It is returned when the host name portion of the URL can't be resolved.
Apart from typos, one common cause of this is when an OPC UA server returns names in endpoints but those names can't be resolved by the client. This occurs if you have a client running on a VM with NAT or host-only networking and the server is running on e.g. your work network or the host machine.
HTH, Patrick
|
 1 user thanked Patrick Griffiths for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.