Skip to content

Cannot connect to TWS API #16

Closed
Closed
@katanisk8

Description

@katanisk8

Hi

My docker-compose setup of TWS:

image

Container is successfully created and I can open TWS and see trades etc:

image

I'm trying connect to TWS using provided EClientSocket from TWS API. Using host: ikbr, port: 8888 (tried use host as localhost, 127.0.0.1, host.docker.internal etc. nothing helped):

image

I am not getting any error but IsConnected() method at line 42 all time returning me false.

In ikbr container logs I can see thet connection to 127.0.0.1:7496 is refused:

image

What I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions