Science & Tech

How to Host a Minecraft Server on Android [Termux + Ngrok]

Share:

Minecraft is one of the exceptional games which allows you to make an individual server for multi-player gaming. You can have a Minecraft server on Windows, Linux, and macOS, however it doesn’t uphold Android gadgets which is a bummer. Having a versatile server like an Android gadget would have without a doubt made playing Minecraft significantly more tomfoolery. So looking for an answer, we found an intriguing way which allows you to have a Minecraft server on an Android gadget. The cycle is a piece extended and specialized, however if you believe should make it happen, you can get it done. So right away, we should feel free to figure out how to have a Minecraft server on Android.

Watch Full Video Tutorial :

Hosting Minecraft Server on Android

Let’s start hosting or own minecraft server on our android phone for free

– Install Termux App

You need to download and install the latest version of Termux App.

You can download it from here.

– Installing Ubuntu on Your Android Device

Now open the Termux app, paste the script given below and tap the “Enter” key. Termux will start downloading Ubuntu and it will take few minutes to install Ubuntu.

Script –

pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh

After the installation is done, paste and run the following command to launch Ubuntu.

./start-ubuntu.sh

Now, you will see root@localhost on Termux.

– Install Java Development Kit

Since we have introduced Ubuntu, how about we introduce a few bundles expected to run Minecraft server. Most importantly, we will introduce the JDK bundle on Ubuntu. Duplicate the accompanying order and run it on Termux. Presently, trust that the establishment will finish.

Run these commands in Termux one by one..

apt-get update
apt-get install openjdk-17-jre

– Install Minecraft Server on Android

Now, let’s install a Minecraft server on Android. Follow these steps. For this tutorial I will install spigot minecraft server but you can install any type of MC server by following thesesame steps.

Official Minecraft Server

Spigot Minecraft Server

wget -O minecraft_server.jar https://download.getbukkit.org/spigot/spigot-1.19.2.jar
chmod +x minecraft_server.jar

– Running Minecraft Server on Android

java -Xmx2G -Xms2G -jar minecraft_server.jar nogui
apt-get install nano
nano eula.txt
nano server.properties

Running minecraft start server command again

java -Xmx2G -Xms2G -jar minecraft_server.jar nogui

How to Tunnel Your Local Minecraft Server to the Internet using Ngrok

wget -O ngrok.zip https://bin.equinox.io/a/nmkK3DkqZEB/ngrok-2.2.8-linux-arm64.zip
apt-get install zip unzip
unzip ngrok.zip

Sign Up on ngrok Website and get your auth token ..

./ngrok authtoken <your auth token from ngrok website>
./ngrok tcp 25565

Copy your forwarding address and send it to your friends so that they can join your server. Forwarding address will look like this

0.tcp.ngrok.io:15860
Share: