Remote ANVEL connection fails using external API
Trying to go through the Python API example and to connect to a remote ANVEL instance. Failing at the transport.open() call. Both of my machines (client and server) are running Windows. The ANVEL version is 2.5. I can ping both way and both firewalls are disabled. Using anvelapihelp.py from ConvoyLib. Here's my call:
And the error generated:
TTransportException Traceback (most recent call last)
<ipython-input-98-0b3340659f4c> in <module>()
----> 1 anvelapihelper.ANVELConnect("172.20.16.55")
C:\Program Files\ANVEL25\API\python\src\ConvoyLib\ConvoyApi\anvelapihelper.pyc i
n ANVELConnect(ip, port)
45 proto = TBinaryProtocol.TBinaryProtocol(trans)
46 anvel = AnvelControlService.Client(proto)
---> 47 trans.open()
48 trans.handle.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1)
49 return anvel
C:\Python27\Lib\site-packages\thrift\transport\TSocket.pyc in open(self)
--> 113 raise TTransportException(TTransportException.NOT_OPEN, msg)
115 def read(self, sz):
TTransportException: Could not connect to any of [('172.20.16.55', 9094)]
Any thoughts? Is there anything on the ANVEL side that I need to configure for it to accept that connection?
Found another wiki page here that I haven't seen before, trying to follow instructions here:
Hopefully, that'll resolve my issues.
Let us know if that works for you - http://wiki.anvelsim.com/2/index.php/API#Network_Configuration may also help setting the correct environment variables.
Omg, it worked!!! This is awesome. I can take over the [sim] world now!