Skip to content
English
  • There are no suggestions because the search field is empty.

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

http://38.xxx.xxx.xxx:xxxx/

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:

  1. Open a command prompt by pressing the key combination “Ctrl+Alt+T” (Ubuntu).
  2. In the command prompt that appears, install the latest updates.
    sudo apt update

    sudo apt upgrade
  3. After installing the updates, reboot the device.
  4. 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:

  1. 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)
  2. 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".
  3. 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...
  4. Congratulations! The panel has been installed successfully!

Step 4: Configuring 3X-UI Panel

To proceed to configuring 3X-UI, follow these steps:

  1. 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.
  2. After entering the address in the browser, a login window for the panel will appear, where you must enter the username and password.
    0
  3. To configure the first connection, click the Inbounds tab in the side menu → Add Inbound.
    1
  4. Configure the protocols in the window that appears, the remaining fields can be generated by clicking certain buttons.
    • Note – connection name.
    • ProtocolTrojan.
    • IP Port – leave it blank, the panel will automatically fill this field.
    • Port – xxx.
    • TransmissiongRPS.
    • Security – clicking Reality other fields will be filled, for example, uTLSchrome, but most recommendations agree that you should specify Mozilla Firefox.
      2
  5. Scroll down and click Get New Cert to generate a Public Key and Private Key.
  6. Enable Sniffing.
  7. Click Create.
    3
  8. Congratulations! You have configured up your first 3X-UI connection and your first client.
    4 ready
  9. Using menu-1 Menu, you can open the list of users, add new users, either one by one or all at once.
    4.1 menu

Step 6: Connecting Android Devices

To connect and configure 3X-UI VPN on Android device, follow these steps:

  1. Download the V2Box from Google Play.
  2. 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.
    5 client-1
  3. To add a profile, launch the V2Box app.
    Android 1 en doc
  4. 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.
    Android 2 en doc
  5. Scan it from your computer screen using your Android device.
    QR
  6. To activate VPN, click Connect.
    Android 3 en doc
  7. Congratulations! You can now use the VPN connection.
  8. To disconnect VPN, click Disconnect.
    Android 4 en doc

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.