Hosting Interactive Brokers on a VPS: TWS, Gateway, and the Daily Restart
Most platforms are one application; Interactive Brokers is an ecosystem. Manual traders live in Trader Workstation. Algo traders talk to IB Gateway through the TWS API, ib_insync, or FIX. Both are Java applications with a famous quirk — a mandatory daily restart — and both are gated by two-factor authentication that was designed for a phone in your pocket, not an unattended server. Getting IBKR to run reliably on a VPS is mostly about handling those three things well, and choosing a datacenter that matches the markets you route to.
TWS or IB Gateway: Host the Right One
Trader Workstation is the full desktop: charts, option chains, scanners, portfolio tools. It is also a heavy Java application — with a few watchlists, an options montage, and market data subscriptions, its heap alone can occupy 4–8GB. If you trade manually through TWS, size the VPS around that: our Swing plan (4 cores, 10GB DDR5, $45/mo) runs a lean TWS; Momentum (8 cores, 20GB, $85/mo) is the comfortable choice once option chains and multiple monitors enter the picture.
IB Gateway is the other path: the same connectivity and API surface with no charting front-end, at a fraction of the memory. If your trading is a Python bot on ib_insync or a custom TWS API application, Gateway on the VPS is the standard architecture — the bot and Gateway run side by side on the server, talking over localhost with zero network hops between strategy and broker session. A Swing plan hosts a Gateway-plus-bot stack with room to spare; what you are really buying from the VPS is the uptime and the stable network path, not raw horsepower.
The Daily Restart Problem, Solved Properly
IBKR sessions restart daily by design — TWS and Gateway shut down at a configured reset time, and an unattended server that simply lets that happen wakes up logged out. The fix is layered: enable auto-restart mode in TWS/Gateway settings (which relaunches and re-authenticates the session at reset without a new login for up to a week), set the reset time to a quiet hour for your markets, and register the application in Windows startup so even a full server reboot brings the stack back.
The remaining piece is the weekly re-authentication, which is where two-factor comes in. With IBKR Mobile as your second factor, the weekly prompt arrives on your phone — you approve it from wherever you are, and the session on the VPS carries on. The practical result: one tap a week keeps a fully automated Gateway session alive, instead of a daily manual login on a machine you have to babysit. We configure the auto-restart and startup pieces with you during onboarding.
Which Datacenter for IBKR? It Depends on What You Trade
Interactive Brokers routes to over 150 markets, so 'low latency to IBKR' means different things for different books. US equities and options match in the New Jersey data centers — our Equinix NY7 servers in New York keep that path short. CME futures match in the Chicago area — that is our 427 S La Salle facility. For LSE and European venues, Equinix LD4 in London is the natural home, sitting in the same campus ecosystem as much of Europe's trading infrastructure.
For most IBKR customers the honest advice is: pick the location for your primary market and stop optimizing there. The IBKR architecture routes your order through their infrastructure regardless, so this is not an exchange co-location play — it is about removing the 30–250ms residential last mile and putting your session on a redundant 1Gbps datacenter connection a short hop from IBKR's edge. API strategies feel this most: every market-data tick and order acknowledgment crosses that path.
Running Live, Paper, and Bots on One Server
A common production setup on our Momentum plan: live TWS for discretionary trading and monitoring, a paper-trading TWS instance for testing strategy changes against real market data, and an IB Gateway session serving an automated strategy — three Java processes, each with its own login and API port. IBKR permits concurrent live and paper sessions, and the paper account's data mirrors your live subscriptions, which makes the VPS a genuine staging environment rather than just a terminal.
Operational notes that save IBKR traders pain: keep the server clock synchronized (Java sessions and API timestamps are sensitive to drift — our timezone guide below covers it), give the Java heap breathing room rather than letting it swap, and use our managed update windows so a Windows patch never lands during US market hours. Flow (16 cores, 40GB, $175/mo) is the tier for multi-account structures — advisors or traders running several Gateway sessions with independent strategies.

