So far, so good! I have written a little app in C#,that receives streaming data from IB. I have also converted it into a DLL that I am calling from a GUI. Later on I will skip the GUI and incorporate the DLL in a larger trading system, that I am writing with a group of friends. Thanks a lot for the valuable hints I got on this forum. Now I am curious....how about the little Java GUI that asks me if I want to accept the incoming connection...can I get rid of it and just write some code that will automaticaly accept the connection? Thanks in advance Fredrik
Look at the trusted connections option under the settings. It lets you specify trusted IP addresses/hostnames that will not give you the prompt. For example "127.0.0.1" and "localhost" are good ones to populate. SSB
Right now it looks like this, but its sort of besides the point. I wrote the GUI just to be able to test a DLL . the DLL contains all code that directly communicates with the TWS. I will drop the GUI later, when it is time to hook up the DLL to the main program.
SlideShowBob, I found those settings in the TWS. Thank you! Unfortunately the java message box comes anyway. it says: "Accept incoming connection attempt?" I would like to automate this procedure, since there will be noone around to handle it( except the system) Fredrik
Maybe I make some mistake, I don´t know. Anyway my local ip is 172.19.16.102.Under the Configure menu in IB Trader Working Station, I go to "API" and select trusted Ip addresses and enter 172.19.16.102. I klick apply and OK. Then I turn to my own C#-app and klick connect. And the confirmation prompt keeps coming.
172.19.16.102, is the ip-adress on this machine, as reported by the ipconfig command (executed in the command prompt) I tried 172.0.0.1 as well, but it does not change anything.