Best VPS for Interactive Brokers TWS & IB Gateway
Keep Trader Workstation, IB Gateway, and your API strategies connected to Interactive Brokers around the clock, on a dedicated Windows server close to IBKR's data centers.
Starting from $16.67/month
- 14-day money-back guarantee
- Ready in under 60 seconds
- MT4 & MT5 pre-installed
Why Run IBKR on a VPS?
Every Interactive Brokers API strategy, whether in Python, Java, C#, or C++, talks to IBKR through a running copy of TWS or IB Gateway. If that application lives on your home computer, your bot is only as reliable as your Wi-Fi, your power, and your operating system's update schedule.
A MarginVPS server keeps TWS or IB Gateway running on dedicated hardware in a professional data center, with a stable connection to IBKR's regional servers. Your scripts, the gateway, and your monitoring all live on one always-on machine you can reach from anywhere.
TWS or IB Gateway: which should your VPS run?
Both connect your code to Interactive Brokers through the same API. The difference is everything around it.
| Trader Workstation (TWS) | IB Gateway | |
|---|---|---|
| Interface | Full trading platform with charts, option chains, and order entry | A small login window and no trading screens |
| Memory use | Heavy: plan for several GB with many windows | Light: comfortably fits on Basic alongside a Python bot |
| API access | Yes | Yes, the same API |
| Default API ports | 7496 live, 7497 paper | 4001 live, 4002 paper |
| Daily restart | Yes, by design | Yes, by design |
| Best for | Traders who also trade or monitor by hand | Unattended bots and API-only strategies |
Port numbers are IBKR's defaults and can be changed in the API settings of either application.
Match your account region to a VPS location
IBKR connects you to servers in your account's home region. Put your VPS in the same part of the world.
| Your IBKR account | Connects to | Best MarginVPS location |
|---|---|---|
| US and Americas | IBKR's North American servers | New York |
| UK and Europe | IBKR's European servers | Frankfurt or London |
| Asia-Pacific | IBKR's Asian servers | Hong Kong |
Not sure which region your account uses? IBKR support can confirm it in a minute.
Set Up IBKR in Three Steps
Pick Your Region
New York for US accounts, Frankfurt or London for Europe, Hong Kong for Asia-Pacific accounts.
Install TWS or IB Gateway
Install the IBKR app you use, then your API client, whether that's Python, Java, C#, or another language.
Automate the Daily Restart
Configure the daily restart and auto-login tools you rely on so your session comes back without you.
Pricing
Simple pricing for every trading setup
Every plan runs on dedicated resources with your trading platform pre-installed and 24/7 support included. Upgrade any time, no long-term contract.
Basic VPS
Best for 1 to 2 trading accounts
$200 billed yearly
Launch Now- CPU
- 2 CPU Cores
- RAM
- 2 GB DDR5
- Storage
- 60 GB NVMe
Standard VPS
Best for 3 to 6 trading accounts
$320 billed yearly
Launch Now- CPU
- 2 CPU Cores
- RAM
- 4 GB DDR5
- Storage
- 70 GB NVMe
Professional VPS
Best for 7 to 8 trading accounts
$480 billed yearly
Launch Now- CPU
- 4 CPU Cores
- RAM
- 8 GB DDR5
- Storage
- 100 GB NVMe
14-day money-back guaranteeReady in under 60 secondsSecure checkout
Every plan includes
Pre-installed platforms
Compatible with any broker or trading platform
- Locations
- LD4, NY4, FR2, TY3, SG1, HK1, DUB1
- Latency
- ~1ms or less to most brokers
- OS
- Windows Server (Licensed)
- IP Address
- 1 Dedicated IP Address
- Uptime
- 99.99% Uptime SLA
- Ready in under 60 seconds
- Free location changes
- Free Windows reinstalls
- 1-click file upload
- Works with any broker
- Works with any trading platform
- Dedicated IP address
- Automated daily backups
- Firewall & DDoS protection
- MT4 & MT5 pre-installed
- 99.99% uptime SLA
- 14-day money-back guarantee
- 24/7/365 technical support
- 1-click platform installer
- Network tuned for trade execution
- Proactive uptime monitoring
Need more power? Dedicated Server: Up to 25 trading accounts
From $145.83/mo · In stock, ready within 24 hours
Frequently asked questions
Should I run TWS or IB Gateway on my VPS?
For API-only bots, IB Gateway is lighter and uses less memory. If you also trade or monitor manually, run TWS. Both work on any MarginVPS plan and both expose the same API.
Which location is best for Interactive Brokers?
Pick the region your account connects to. Most US accounts use IBKR's North American servers, so New York is best. European accounts are usually best served from Frankfurt, and Asia-Pacific accounts from Hong Kong.
What about the daily TWS restart?
TWS and IB Gateway restart once a day by design. On a VPS you can configure the built-in auto-restart and add a login automation tool, so your session comes back without anyone at the keyboard.
Which plan should I choose for IBKR?
Basic is fine for IB Gateway plus a light Python bot. If you run full TWS with many windows, or several strategies at once, choose Standard or Professional for extra RAM.
Can I run multiple IBKR accounts on one VPS?
Yes. You can run separate TWS or Gateway instances on different API ports, each logged in to its own account, as long as your plan has the memory to support them.