Skip to content

Multiple TWS Instances

If you have accounts that require separate TWS logins (e.g., different usernames), you’ll need to run multiple TWS instances on different ports.

This applies when:

  • You have accounts under different IBKR logins
  • Each login requires its own TWS Desktop instance
  • You want to consolidate monitoring in one OptionsRealTime setup

Each TWS instance needs a unique port. Configure them in TWS:

TWS InstanceLoginPort
TWS #1user17496 (default)
TWS #2user27497
TWS #3user37498

In each TWS:

  1. Go to File → Global Configuration → API → Settings
  2. Set the Socket Port to 7496, 7497, 7498, etc.
  3. Click OK

See TWS Configuration for detailed setup with screenshots.

Add each account with its corresponding port:

Account IDHostPortClient ID
U1234567localhost74961
U2222222localhost74962
U7654321localhost74971
U9999999localhost74981

Rover multiple ports

  • Different ports for different TWS instances
  • Client IDs restart at 1 for each TWS instance
  • Same Host — All TWS instances run on localhost
  1. Ensure all TWS instances are running and logged in
  2. Test each account connection in Rover
  3. Go to File → Save to save your configuration
  4. Click Start Publishers to begin streaming
  1. Double-click OptionsRealTime from the desktop folder
  2. The Select Account dialog shows all accounts from all TWS instances
  3. Choose the account you want to view
  4. Click OK

Select from multiple accounts

Multi-Machine Setup →
Run OptionsRealTime UI on different computers than TWS