[ts-gen] MacOS Shim problems

Richard Pruss boadie at gmail.com
Wed May 13 18:57:14 EDT 2009


On 13/05/2009, at 11:19 AM, R P Herrold wrote:

> On Wed, 13 May 2009, Richard Pruss wrote:
>
>>         loaded  51620 products.
>>
>> An attempt to connect to host localhost on port 7496 failed; you may
>> need to start, restart, or provide access permissions to, the IB tws.
>> Connect: Connection refused
>> errno: 61; port 7496
>>
>> Problem: 520 the IB tws socket connect failed
>> Exiting
>
> This is almost certainly a non-configuration of the TWS on the
> unit.  You need to enable 'socket' connections in its
> configuration settings, and verify that it is listening on
> port 7496.  When properly done, in a console as root, this
> command should return a line:
>      # netstat -pant | grep 7496

When TWS is up, I can telnet the port and my java history downloader  
is working fine over the socket connection, and yes it shows in netstat.

When I tested the Telnet I notice Apple is tries all the Ipv6  
localhosts first so, I change
the Feedhost in .shimrc to 127.0.0.1 and I seem to get a little deeper,:

           The trading shim has connected to the database server and
           loaded  51620 products.  The IB tws offered api level 44,
           and connection negotiation resulted in an api level of 23
           and a client id of  1.  A query shows the account code to
           be DU(number removed).  Program initialization has been  
completed.

but then it freezes and shim does not accept commands.

I can also see the two tcp4 connections in netstat are still up, when  
the shim has frozen.

The things that puzzle me are:
-  why does shim freeze somewhere between that initialize message and  
the prompt from shim coming up
- why does using localhost say no connection for TWS, did it try to  
connect v6? but 127.0.0.1 seems to connect at least.

- Ric


>
>
> -- Russ herrold
> _______________________________________________
> ts-general mailing list
> ts-general at trading-shim.org
> http://www.trading-shim.org/mailman/listinfo/ts-general



More information about the ts-general mailing list