IB Java API example connection problem trough IB Gateway

Discussion in 'App Development' started by flakac, Jan 12, 2012.

  1. flakac

    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.
     
  2. rosy2

    rosy2

    do you give a temp guest account on you machine. I will do it for you
     
  3. IB Gateway API port needs to match the one that you are using to connect.
     
  4. flakac

    flakac

    Thank you.. I found the port in IB Gateway is different.., 4001
    also the ID must be set. It works now. thank