how to run desktop version of interactive brokers tws on android phone

you can run full TWS on android phone, to use, for example, with Samsung DEX using following steps:

. install TERMUX and AVNC from f-droid (version on google play is outdated)
. install ubuntu on termux

apt-get update && apt-get upgrade
apt-get install wget proot git
git clone
cd ubuntu-in-termux
chmod +x
./ -y
apt update
apt install tightvncserver
apt install wm2
export USER=root

.download tws and install java8 and java11 using

apt install gnupg
wget -q -O - | apt-key add -
echo "deb [arch=arm64] stable main" | tee /etc/apt/sources.list.d/bellsoft.list
apt-get update
apt-get install bellsoft-java8
apt-get install bellsoft-java11-full

. run downloaded tws installer by executing

app_java_home="/usr/lib/jvm/bellsoft-java8-aarch64" sh

run TWS using

export USER=root
export DISPLAY=:1
vncserver &
app_java_home="/usr/lib/jvm/bellsoft-java11-full-aarch64" sh Jts/tws

to stop vncserver use

vncserver -kill :1

Posted in quant trading