poidasmith / xlloop

XLLoop Excel Function (UDF) Server
104 stars 50 forks source link

XLLoop server directive does not work for me #7

Closed joelhoro closed 12 years ago

joelhoro commented 12 years ago

Hi - I have been playing around with XLLoop this is awesome. Given the difficulty to deploy python to many computers I was hoping to use XLLoop as a server on one machine so I changed the xlloop.ini file

server=10.1.1.14:10000

but this does not work. Otherwise this works fine

server=localhost:10000

Is this just me or is the feature not tested? I would love to help fix it then but my C++ is pretty poor.

Thx

poidasmith commented 12 years ago

Fairly sure this works! Are you able to telnet to the same address?

joelhoro commented 10 years ago

Hey - just a quick update. I gave up at the time but had a look at this again today. There were a couple of issues which are easy to fix:

1) the ini file needs to be called like the xll i.e. xlloop-0.3.2.ini (not xlloop.ini) and be in the same dir as the xll 2) the python server example on the other machine was not listening on the external port (which would have answered to your question). This is because of the line

    self.server = SocketServer.ThreadingTCPServer(('localhost', self.port), XLLoopHandler)

in xlloop.py. 'localhost' should in fact be '0.0.0.0'. Perhaps the listening IP could be an argument in the XLLoopServer constructor. This may apply to examples in other languages...