Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Is it ‘safe’ to use the IP address of 127.0.0.1 as the name of the local machine?

More
21 Sep 2014 06:33 #2317 by support
If you can, leave the name blank. "127.0.0.1" should work, but it goes different ways internally, both inside QuickOPC, and inside Microsoft COM/DCOM.

Basically, whenever the machine name is not empty, it is (for most part) "unrecognizable" from representing a remote computer, and it is treated as such. It may mean less efficient access, and small differences in functionality.

One of the things that differ is that with an empty machine name, CoCreateInstance API call is used to instantiate the OPC objects; with a non-empty name, CoCreateInstanceEx is used, and this one takes many more parameters, regarding security etc. This stuff can hardly bring anything useful locally (and in some cases, it may even cause issues).
The following user(s) said Thank You: pgilbert

Please Log in or Create an account to join the conversation.

More
21 Sep 2014 06:27 #2316 by support
From: P.
Sent: Friday, September 19, 2014 2:12 AM
To: Zbynek Zahradnik
Subject: RE: QuickOPC Download Form - ...

Hello Zbynek, [...] I have the following questions regarding the distribution and installation of your software while using it as COM:

[...]
4. Question 4: Is it ‘safe’ to use the IP address of 127.0.0.1 with ReadItemValue and WriteItemValue as the name of the local machine or you prefer to leave it blank ?

Thanks in advance,

P.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.043 seconds