I'm wondering if there is anyone here who is using JAVA API to trade with Interactive brokers. I recently got the API and I'm trying to connect to the TWS through API. Unfortunately, I get the following error message -1 | 502 | Couldn't connect to TWS. Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu. I've enabled the AxtiveX and Socket clients and I'm still getting this. I'm wondering if anyone else experienced this in the beginning. Thanks in advance for any help/comments.