Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 14:49:20 +0000



Post From: Trouble connecting to IB/TWS

[2018-02-07 01:28:40]
unset
Have a SC instance connected fine to IB via the IB Gateway API. When I try to connect the same SC instance to IB's TWS it fails to connect. TWS settings are the same as IB Gateway settings. Can't understand why the error.

Log says:

Interactive Brokers | Connecting to 127.0.0.1:7496 | 2018-02-06 20:27:14
Socket (1302) | Creating socket. | 2018-02-06 20:27:14
Socket (1302) | Connecting to IP: 127.0.0.1. | 2018-02-06 20:27:14
Socket (1302) | Connect event error. Windows error code 10061: No connection could be made because the target machine actively refused it. | 2018-02-06 20:27:15 *
Socket (1302) | Initiating close of socket by core. | 2018-02-06 20:27:15
Interactive Brokers | Failed to connect to the data and trade server. | 2018-02-06 20:27:15 *
Note: Is the Interactive Brokers TWS software running and is it enabled for socket clients? | 2018-02-06 20:27:15 *
Error connecting to Data or Trading service. For help with this issue, press the 'Send For Analysis' button on this window. | 2018-02-06 20:27:15

Can you help?