-
HI setup seems fine, docker starts, and my app connects but as soon as I try to connect via IBAPI I get a timeout. can someone help me on the right track ? here my files [Logon] [System] [Advanced] env ib-gateway#TWS_SETTINGS_PATH=/home/ibgateway/Jts tws#TWS_SETTINGS_PATH=/config/tws_settings TWS_SETTINGS_PATH=TWS_ACCEPT_INCOMING=yes SSH_USER_TUNNEL= YAML
ibgateway:
- /volume1/docker/OptionFinder/tws_settings/jts.ini:/home/ibgateway/Jts/.jts.ini:rw
- ${PWD}/ssh/:/home/ibgateway/.ssh
volumes: networks: jts.ini [Logon] [System] [Advanced] ExitAfterSecondFactorAuthenticationTimeout=noReloginAfterSecondFactorAuthenticationTimeout=30 docker ps IBgateway logs .> Starting IBC/IB gateway .> Starting Xvfb server ================================================================================ Starting IBC version on 2025-07-17 at 21:59:12 Operating system: Linux 07d7d1df492f 4.4.302+ #72806 SMP Thu Sep 5 13:44:44 CST 2024 x86_64 x86_64 x86_64 GNU/Linux Arguments: TWS version = 10.39.1b ================================= Generating the JAVA VM options Determining the location of java executable Renaming IB's TWS or Gateway start script to prevent restart without IBC Starting Gateway with this command: The XKEYBOARD keymap compiler (xkbcomp) reports:
The VNC desktop is: 07d7d1df492f:0 Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet? The scheme stores pixel data offscreen on the VNC viewer side for faster
One can also add -ncache_cr for smooth 'copyrect' window motion. IBC Settings: 2025-07-17 21:59:18:422 IBC: version: 3.23.0
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Based on the log everything is OK, VNC is up and running and IBC/ibgateway have completed auth. The timeout that you mention might be coming from IBKR itself, i don't see anything abnormal with that. I get timeouts from time to time. VNC should work based on your port mapping. Make sure you are using the right IP and port on the client side. I looks like ibgateway docker image is doing it's part. for the timeouts you would need to ckeck TWS API itself. |
Beta Was this translation helpful? Give feedback.
-
thx for checking. checked the settings and funnily the trusted Ips have not been set. now when connecting I still get the timeout error and on VNC the API client is then showing as disconnected. |
Beta Was this translation helpful? Give feedback.
-
found the issue in my code.. some warning got interpreted as error and stopped the connection.. Now all running.. awesome.. thx for your help and bringing me on the correct path... was thinking and checking for days the ibgateway is the issue :-( |
Beta Was this translation helpful? Give feedback.
Based on the log everything is OK, VNC is up and running and IBC/ibgateway have completed auth.
The timeout that you mention might be coming from IBKR itself, i don't see anything abnormal with that. I get timeouts from time to time.
VNC should work based on your port mapping. Make sure you are using the right IP and port on the client side.
I looks like ibgateway docker image is doing it's part. for the timeouts you would need to ckeck TWS API itself.