IB Java API example connection problem trough IB Gateway

Halo
I have no problem to connect the java API example (TestJavaClient) using Netbeans if my TWS Workstation is running. However, I cannot connect trough IB gateway. The IB gateway seems to be connected, but Java example does not work.
 
Quote from flakac:

Halo
I have no problem to connect the java API example (TestJavaClient) using Netbeans if my TWS Workstation is running. However, I cannot connect trough IB gateway. The IB gateway seems to be connected, but Java example does not work.

do you give a temp guest account on you machine. I will do it for you
 
Quote from flakac:

Halo
I have no problem to connect the java API example (TestJavaClient) using Netbeans if my TWS Workstation is running. However, I cannot connect trough IB gateway. The IB gateway seems to be connected, but Java example does not work.

IB Gateway API port needs to match the one that you are using to connect.
 
Quote from nonlinear5:

IB Gateway API port needs to match the one that you are using to connect.
Thank you.. I found the port in IB Gateway is different.., 4001
also the ID must be set. It works now. thank
 
Back
Top