Go to last post Go to first unread
Offline Elizabeth Rapoport  
#1 Posted : Friday, October 9, 2015 3:01:13 PM(UTC)
Elizabeth Rapoport

Rank: Newbie

Joined: 10/9/2015(UTC)
Posts: 1

Was thanked: 1 time(s) in 1 post(s)
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

Result result;
bool success = spConnection->Connect(result);
std::cout << result.GetCode() << std::endl;
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 1 user thanked Elizabeth Rapoport for this useful post.
Offline Patrick Griffiths  
#2 Posted : Tuesday, October 13, 2015 6:24:02 AM(UTC)
Patrick Griffiths

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.

thanks 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.

Matrikon Subscribe  |   Matrikon Unsubscribe  |   Global Unsubscribe  |   Privacy Statement  |   Do Not Sell My Personal Information   |   Cookie Notice