Can’t connect to IB: I get “No connection could be made because the target machine actively refused it”

This means TWS is not allowing TradeBullet to connect to it. There are two ways to fix this:

1) From the TB session, click on the Broker section and make sure the “Use existing page layout” option is unchecked, and that “Setup TWS” is checked.
2) Start TWS manually and go to Configure|API and make sure the “Enable ActiveX and Socket clients” option is checked. Then click on File|Save to save the setting, then close TWS.