3X-UI on Your Server for Android: Installation and Basic Configuration
This article provides instructions on installing and configuring 3X-UI on your server for Android.
3X-UI is a user-friendly open-source web panel for managing VPN servers that supports various protocols such as Trojan, VMess, VLESS, ShadowSocks, and WireGuard.
This tool allows you to set up and manage VPN connections and multiple users, limit traffic, timeout, and IP addresses. 3X-UI suits experienced and novice users due to its automatic SSL certificate management support.
The main difference between 3X-UI panel and other such services is its advanced settings and increased data security.
Step 1: Buying a Server
The first step in installing and configuring 3X-UI panel on your server is buying or renting the server.
Recommended system requirements:
- OS: Debian 12 (default) or Ubuntu 24.04 (for self-configuration)
- RAM: Minimum 2 GB
- Virtualization: KVM
- Network: IPv4 required
- Pre-installed software: 3X-UI
The article will use Ubuntu 24.04.
With its high performance and flexible management, is*hosting is an excellent solution for VPS rental. We offer both a clean VPS for self-configuration (the minimum Lite plan is sufficient) and a ready-to-use solution with the 3X-UI panel installed.
After ordering a server, you will receive access information by email in the form:
The panel address is http://IP_address:PORT/.
Server IP: 38.xxx.xxx.xxx
Root / xxxxxxxxxx
User = xxxxxxxx
Password = xxxxxxxx
Step 2: Initial Server Setup
This article will set up a new connection on Ubuntu 24.04 via one of the best, lightest, and most efficient protocols – the Trojan protocol. This protocol is used as a bridge between the client and the server.
To set up the server for installing 3X-UI VPN, do the following:
- Open a command prompt by pressing the key combination “Ctrl+Alt+T” (Ubuntu).
- In the command prompt that appears, install the latest updates.
sudo apt update
sudo apt upgrade - After installing the updates, reboot the device.
- To make sure that the necessary packages are installed on your server, enter the following command:
apt-get install wget curl -y
Step 3: Installing the 3X-UI Panel
To install the 3X-UI panel, follow these steps:
- To install the panel on the server, run the script with the following command:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
- Then the script will ask the following question in the command line:
Would you like to customize the Panel Port settings? (If not, a random port will be applied) [y/n]:
To set the port yourself, answer "y". If you want the script to set the port automatically, answer "n". - Next, specify the user password, the panel port (we recommend setting a non-standard one), and the web path to the panel site.
Please set up your password: **********
Your password will be: **********
Please set up your panel port: ***
Your panel port will be: ***
Initializing, please wait... - Congratulations! The panel has been installed successfully!
Step 4: Configuring 3X-UI Panel
To proceed to configuring 3X-UI, follow these steps:
- Connect to the panel via a browser using the link ipserver:port. In our case, the link looks like this: http://38.xxx.xxx.xxx:xxxx.
- After entering the address in the browser, a login window for the panel will appear, where you must enter the username and password.
- To configure the first connection, click the Inbounds tab in the side menu → Add Inbound.
- Configure the protocols in the window that appears, the remaining fields can be generated by clicking certain buttons.
- Note – connection name.
- Protocol – Trojan.
- IP Port – leave it blank, the panel will automatically fill this field.
- Port – xxx.
- Transmission – gRPS.
- Security – clicking Reality other fields will be filled, for example, uTLS – chrome, but most recommendations agree that you should specify Mozilla Firefox.
- Scroll down and click Get New Cert to generate a Public Key and Private Key.
- Enable Sniffing.
- Click Create.
- Congratulations! You have configured up your first 3X-UI connection and your first client.
- Using
Menu, you can open the list of users, add new users, either one by one or all at once.
Step 6: Connecting Android Devices
To connect and configure 3X-UI VPN on Android device, follow these steps:
- Download the V2Box from Google Play.
- In the 3X-U graphical panel, expand (with the plus sign) the list of clients and under the Menu next to the client you just created in Step 5, click the QR code icon.
- To add a profile, launch the V2Box app.
- In the application, select the Configs tab and in the upper left corner, click the QR code scanning icon → scan it from the computer screen with Android device.
- Scan it from your computer screen using your Android device.
- To activate VPN, click Connect.
- Congratulations! You can now use the VPN connection.
- To disconnect VPN, click Disconnect.
If you have any questions, you can ask them in the online chat in the lower right corner of the site or create a request to the support service through the ticket system.