¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: How to turn off 2FA


 

¿ªÔÆÌåÓý

Robert

?

The item I was referring to in the User Guide? is under ¡®NOTES REGARDING AUTO-RESTART IN TWS/GATEWAY 1018 and later versions¡¯ on the first page.

?

Maybe you aren¡¯t familiar with the Auto-Restart mechanism in Gateway and TWS? This is precisely a means to login once at the start of the week, and Gateway/TWS will then automatically restart each day and re-login (not requiring 2FA) using cryptographically secured data generated just before the restart. I suggest you read the relevant IBKR documentation (I can¡¯t give you a link for that offhand, but I¡¯m sure you¡¯ll be able to find it).

?

My personal preference has always been for Windows (at least, since Windows NT 4 was released). I¡¯ve never been a fan of Unix or Linux, in spite of being a user of Solaris back in the late 80s).

?

Regarding the GUI, if you¡¯re running Gateway it¡¯s probably irrelevant since there¡¯s not much you can do with it once you¡¯ve got things configured properly (and that usually means no configuration at all since Gateway works quite well ¡®out-of-the-box¡¯ with IBC). However you¡¯ll still need XVFB since Gateway does actually have a GUI so there needs to be something there to absorb the X protocol stuff it generates.

?

If you¡¯re wanting to run large numbers of Gateway instances concurrently, Linux would be much cheaper. You can ¡®Dockerize¡¯ IBC to greatly reduce resource consumption (IBC does not provide an ¡®official¡¯ Docker image, but there are quite a few floating around if you look for them, and they would be a good starting point for creating your own).

?

Regarding ¡®partnering up¡¯, I simply don¡¯t have time for taking on anything like this. You are of course free to use IBC in any way you like (compliant with its GPL licence), and it shouldn¡¯t be too difficult to incorporate its scripts into your infrastructure. But if IBC ends up helping your business and you want to send a slice of your profits to me, I¡¯d be happy to receive them: but as is usually the case with open source software, nobody else does (except for a handful of private users): my total financial benefit over 21 years of IBC development is probably far less than $500.

?

If you want to discuss this any further, please email me directly as this isn¡¯t really on-topic for this group.

?

Richard

?

?

?

From: [email protected] <[email protected]> On Behalf Of Robert Grzesik
Sent: Tuesday, June 4, 2024 7:34 PM
To: [email protected]
Subject: Re: [ibc] How to turn off 2FA

?

This is super helpful, thank you very much! I really appreciate your efforts on IBC, it really seems like a great product and can¡¯t wait to get it set up.?

?

I¡¯m also the lead developer of lumibot (over 700 github stars) and the CEO of lumiwealth (a community of over 30k Algo traders). Maybe we can partner up somehow? I¡¯d be happy to promote IBC and maybe we can add native support to lumibot. We are also a for profit entity so we can pay you for sending us traffic.?

?

As for your responses:

?

1. Can you point me to where exactly you mention this? Maybe I¡¯m blind but I can¡¯t find it.?

?

2. This is awesome, can¡¯t wait to set up IBC.?

?

3. Love these suggestions. Which do you prefer, Windows or Linux? I¡¯ve never had to run a GUI in either one. I¡¯m assuming Linux would be much cheaper??

?

Also any thoughts on doing this without a GUI? I¡¯m just thinking if we wanted to automate this process for 1000+ accounts it could get tricky.?


Robert, CEO Lumiwealth
347-635-3416

?

?

On Tue, Jun 4, 2024 at 12:22?PM Richard L King via <rlking=[email protected]> wrote:

FYI, I¡¯m the developer of IBC, so yes, I¡¯m quite knowledgeable about it¡­

?

Answers to your questions:

?

  1. You need to study the User Guide! The very first page mentions Auto-Restart. Also read the section on Second Factor Authentication.
  2. If you run Gateway without using IBC, you only get the alert on your phone once: if you don¡¯t acknowledge it within 3 minutes, login fails and you have to interact directly with Gateway to login again: but IBC does that for you.
  3. Running it on a cloud server is really no different from running it on your own computer, especially if it¡¯s a Windows server, except for the following:

¡¤?????? For Windows:

  1. You¡¯ll need to enable Remote Desktop if you want to be able to interact with the GUI
  2. You¡¯ll need to set up a VPN tunnel to give you secure access to the GUI and the API port. I recommend WireGuard, which I use myself to access my home systems when I¡¯m away from home.

?

¡¤?????? For Linux:

  1. You¡¯ll need to install a virtual frame buffer like XVFB, or something like VNC server, to enable you to access the GUI (using a VNC client)
  2. You can use an SSH tunnel to secure things.
  3. You might find this document helpful: It¡¯s quite old now, and relates more to TWS than Gateway, but it contains a mass of useful information if you¡¯re not a Linux expert

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of rob@...
Sent: Tuesday, June 4, 2024 2:01 PM
To: [email protected]
Subject: Re: [ibc] How to turn off 2FA

?

That sounds great. Yea I guess you're right that we don't have to be in front of a computer now that I think about it.

A few follow up questions since you seem very knowledgable on this issue:

1. You say we only have to log in once a week, how do you accomplish that? From what I can tell IB Gateway forces you to log in every 24 hours.

2. When you say "If you forget, it will keep sending the prompt periodically until you do it.", do you mean that when using IBC? Or is that something that Gateway does automatically?

3. Any ideas how to run this all in the cloud? Running it on my computer seems easy enough, but running it on a server like AWS or Heroku seems a lot more complicated. Any advice or resources on this?

Thank you so much Richard!

Join [email protected] to automatically receive all group messages.