Noooo, I am sorry. You are right. 127, not 172. It works ! Thank you. It is very much Monday morning over here Thanks and thanks again!! Fredrik
127, not 172. Ipconfig don't show you the local host. Edit the file \windows\system32\drivers\etc\hosts. look for or add "127.0.0.1 localhost" and rboot.
Sorry I hadn't subscribed to this thread...doh! So I missed your questions.... Also try joining the twsapi yahoo group. There's quite a bit of code posted there in Java (which in many cases easily translates to c#) which is useful. SSB
Oh,no need to apologize. I think I´ve never seen such a high quota of useful answers in any other forum on the web. It is really great here!
TWS will fire an event with the server time upon connection. You need to store the offset from your own PC's time (or set your PC to match it) -- TWS won't send times with events. SSB
OK, no timestamps... actually I am after some way to detect that the TWS is down. If it is down it should be restarted. I have implemented a disconnection method, but I don´t see the TWS calling it. If my C# app is running, the TWS will freeze if I close it Fredrik