Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on listing servers #6

Open
Miky94 opened this issue Oct 2, 2018 · 6 comments
Open

error on listing servers #6

Miky94 opened this issue Oct 2, 2018 · 6 comments

Comments

@Miky94
Copy link

Miky94 commented Oct 2, 2018

I followed OpenOPC Library Tutorial:

import OpenOPC
opc = OpenOPC.open_client('<server-ip>')
opc.servers()

but when I try listing servers I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\Pyro\core.py", line 381, in __call__
    return self.__send(self.__name, args, kwargs)
  File "C:\Python27\lib\site-packages\Pyro\core.py", line 455, in _invokePYRO
    self.adapter.bindToURI(self.URI)
  File "C:\Python27\lib\site-packages\Pyro\protocol.py", line 330, in bindToURI
    raise ProtocolError('connection failed')
Pyro.errors.ProtocolError: connection failed

suggestions?

@xandrade
Copy link

xandrade commented Oct 2, 2018

Did you replace the argument '' with your OPC IP address or hostname?

@Miky94
Copy link
Author

Miky94 commented Oct 2, 2018

yes of course

@xandrade
Copy link

xandrade commented Oct 2, 2018

Fine, did you try connecting first with an OPC client? May I ask for the OPC server you are trying to connect to? OPC DA? What about the brand? MatrikonOPC?

@Miky94
Copy link
Author

Miky94 commented Oct 4, 2018

I tried connecting first from the server itself (using localhost) and it worked , but not from another pc.
the OPC server is the Matrikon.OPC.Simulation.1 integrated in MatrikonOPC Explorer.
I also tried using instead the OpenOPC Command-line Client with opc -h <server-ip> -q
and I get: Error getting server list from <server-ip>' - servers: Unspecified error.
even this worked from the server itself.
I'm working in a LAN with windows firewall turned off on both client and server machines

@shrutifiske
Copy link

@Miky94
I faced the same issue but when i turned off the firewall on windows ,I am able to connect to OPC server.

@papercodeIN
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants