Skip to content
Everyone knows that servers are high-end hardware, not only luxurious in hardware but also expensive. In fact, servers can be built not only with computers but also with smartphones. Today, we will teach you how to set up a web server using your smartphone, allowing you to run it anytime, anywhere.
This article uses a Linux server built on a smartphone and requires some tools to prepare.
1. A not-so-slow Android phone, preferably with more than 4GB of RAM. Android is recommended for better open-source compatibility. (iPhones can also work, but are not recommended.)
2. A network connection that supports WiFi, or you can use mobile internet.
3. The phone should ideally be rooted, and there should be no restrictions on installing third-party software, as there may be blocks during service deployment.
4. Download the Termux (Android) application on your computer, though it can also be downloaded on the phone. On the computer, install XFtp and XShell for installation and transfer.

1. Install the phone program: Install Termux or another terminal emulator on your phone and start it.
2. Connect to the network: Connect your phone and computer to the same local WiFi network, and note down the IP address for easy connection to install and deploy the web service later.
3. Use Xshell on the computer to connect to the phone’s terminal emulator. When connecting, enter the phone’s IP address, terminal username, and password. If the connection fails, check the IP or username and password for errors, as shown in the image below:

If you see the image below, the connection was successful.

4. Install the Baota server: This is very simple. After connecting, directly run the command on the computer to deploy the server. Just copy this command:url=https://download.bt.cn/install/install_lts.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh ed8484bec

Depending on the phone’s configuration and network, it will take about 10-30 minutes for the installation to be completed. The interface will prompt that the installation was successful and provide the login address, username, and password for the panel. Be sure to take a screenshot or save this information; you will need to modify it when entering the server page.

At this point, you can only access the server through the local network using the IP address. If you need to access it externally, you will need to use a public IP and set up domain forwarding, which I will not cover here; you can explore that on your own.
Setting up a server on your smartphone saves electricity and takes up no space, which is simply fantastic.
Have you learned this, guys? Remember to support below!