Run a Minecraft Bedrock Dedicated Server on Android using Termux, Ubuntu, Box64 and playit.gg.
This page shows step-by-step how to host a Minecraft Bedrock server on your Android device using the Termux app, an Ubuntu environment, and the BedrockServerTermux scripts.
Before starting, make sure you have:
cd, ls, and copy–paste in Termux.
Open the Termux app and run these commands one by one:
apt update -y
apt upgrade -y
apt install wget -y
This will install an Ubuntu environment inside Termux using proot.
wget https://raw.githubusercontent.com/debojitsantra/BedrockServerTermux/refs/heads/main/setup_ubuntu.sh
bash setup_ubuntu.sh
After the script finishes, log in to your new Ubuntu system from Termux:
proot-distro login ubuntu
You are now inside Ubuntu running on top of Termux. Commands you run here are separate from the main Android system.
Still inside the Ubuntu session, run:
apt update -y
apt upgrade -y
apt install wget -y
This script will install required tools (Box64, Playit, Git, etc.) and download/unzip the official Minecraft Bedrock server files.
wget https://raw.githubusercontent.com/debojitsantra/BedrockServerTermux/refs/heads/main/setup_env.sh
bash setup_env.sh
You need two Termux sessions: one for the Bedrock server and one for the playit tunnel.
In each Termux session, run:
proot-distro login ubuntu
In the first Ubuntu session, go to your home directory and run the helper script:
cd
./run
Keep this session open. Once the server fully starts, it will show logs but you can leave it running in the background.
In the second Ubuntu session, simply run:
playit
Wait for playit to start. It will show a link that you can open in your browser to configure the tunnel.
When a new Bedrock server version is available, you can update it easily using the provided script.
Inside Ubuntu (Termux session), run:
cd server
This will download and install the latest version automatically:
wget https://raw.githubusercontent.com/debojitsantra/BedrockServerTermux/refs/heads/main/update.sh
chmod +x update.sh
./update.sh
./run after the update completes.
After you start playit in the second session, it will print
a link (a URL).
On the playit.gg website, follow the steps to connect your local Bedrock server to a public address.
/root (home) directory inside
Ubuntu before running ./run.
apt update
and then try the script again.
proot-distro login ubuntu).
./run:
make sure the setup scripts completed without errors. If needed,
re-run the environment setup step.
playit is still running and you are using the exact
address shown on the playit.gg dashboard.