sparkstartconsulting / IBKR-API-Rust

Port of Interactive Broker's trading API written in Rust
MIT License
148 stars 43 forks source link

INFO - Connecting INFO - socket either closed or broken, disconnecting Error: IO error: Socket is not connected (os error 57) #28

Closed markmark1 closed 3 years ago

markmark1 commented 3 years ago

I'm using the Rust wrapper to the IB Gateway API (https://github.com/sparkstartconsulting/IBKR-API-Rust).

Everything works dandy if I run the gateway locally, on my machine, and connect via IP (127.0.0.1).

However, when I try to connect to any remote gateway host, I get:

INFO - Connecting INFO - socket either closed or broken, disconnecting Error: IO error: Socket is not connected (os error 57)

Any ideas what I could be missing?

Cheers,

sparkstartconsulting commented 3 years ago

Go into Trader Workstation under Global Configuration. Go to API-->Settings. Uncheck "allow connections from localhost only" and enter a list of remote machines that you want to whitelist to connect from.

Hope this helps, Brett

On Mon, Sep 20, 2021 at 9:11 PM markmark1 @.***> wrote:

I'm using the Rust wrapper to the IB Gateway API (https://github.com/sparkstartconsulting/IBKR-API-Rust).

Everything works dandy if I run the gateway locally, on my machine, and connect via IP (127.0.0.1).

However, when I try to connect to any remote gateway host, I get:

INFO - Connecting INFO - socket either closed or broken, disconnecting Error: IO error: Socket is not connected (os error 57)

Any ideas what I could be missing?

Cheers,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sparkstartconsulting/IBKR-API-Rust/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSKV5CO7SHEJEXWIIBP5O3UC7LSRANCNFSM5ENFZLCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

virtualritz commented 3 years ago

Uncheck "allow connections from localhost only"

@markmark1 posted on my behalf. Sorry for the late reply. This solved it for me at the time – this can be closed.