Replies: 1 comment 2 replies
-
I would suggest you to connect through VNC to make sure everything is working fine. ideally you don't need it in "steady mode" but the main reason to have it is to solve any issue. i don't understand why you have MFA for paper, I don't have it for my paper account, and AFAIK it's only available for live account. if you have MFA set with text messages, then you need to enter the message manually. it's better to use the ibkr app for MFA as you approve the login in the app. make sure you can see in the log |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am trying to run IB Gateway on a cloud server (without GUI) and connect to it via python (ibapi) on the same server that IB Gateway is running.
I have cloned the latest version of ib-gateway-docker and followed instructions on how to build and run with
docker compose up
.based on my observation, it looks like the container does run but faces a problems when I try to connect via python.
Here's my simple python snippet for testing the connection:
Here's the container log when I try to run the python script:
It looks like 2FA is a problem (Enter security code) . The python code triggers a text message to my phone. Does anyone know how to deal with 2FA? I doubt I have deactivate it since it is required every time I login to my paper account via the GUI.
I am attaching my .env for reference:
I do not modify the yml file at all and use what is there on the repo.
I appreciate your help with this.
Beta Was this translation helpful? Give feedback.
All reactions