waytrade / ib-gateway-docker

Docker image with IB Gateway and IBC
MIT License
57 stars 33 forks source link

Can not connect ib-gateway #8

Closed shinhwas closed 2 years ago

shinhwas commented 2 years ago

I tried to run ib-gateway on my windows docker engine. I think tws is running ok. But I can't connect ib-gateway(localhost:4001) from windows to docker engine. What option can I open the network?

  tws:
    image: waytrade/ib-gateway:1012.2c
    restart: always
    env_file: ./.env
    ports:
      - "4001:4001"
      - "4002:4002"
      - "5900:5900"
Forking :::4000 onto 0.0.0.0:4001
2022-01-20T18:20:42.725975500Z 
2022-01-20T18:20:51.272591600Z 2022/01/20 18:20:51 socat[192] E connect(5, AF=2 127.0.0.1:4000, 16): Connection refused
shinhwas commented 2 years ago

Sorry I set up wrong config