How to Set Up 3X-UI VPN on Your VPS — Step-by-Step Guide

// TL;DR

// 1. What Is 3X-UI VPN?

3X-UI is a free, open-source graphical user interface for managing VPN servers, built on top of the Xray-core project. It gives you a full web-based admin panel to manage users, protocols, traffic, and SSL certificates — all from your browser.

Supported protocols:

Built-in features include user management, traffic monitoring, bandwidth limits, expiration dates, and automatic SSL via Let's Encrypt.

Who it's for:

// 2. Why Self-Host Your VPN?

Commercial VPN services are convenient, but they come with tradeoffs. Self-hosting with 3X-UI eliminates most of them:

// 3. VPS Requirements

Use Case RAM CPU Storage Recommended Plan
Family/Team VPN (5-10 users) 4 GB 3 vCPU 40 GB SSD VPS Medium ($39.99/mo)
Small VPN provider (10+ users) 8 GB 4 vCPU 50 GB SSD VPS Premium ($64.99/mo)

3X-UI itself is lightweight, but bandwidth and concurrent connections scale with your hardware. For a personal VPN serving 1-3 users, VPS Start ($24.99/mo) is all you need. For multi-user deployments, step up to VPS Medium ($39.99/mo) for unmetered bandwidth and more headroom.

// 4. Step-by-Step: Install 3X-UI on DejavuHost

1

Order Your VPS

Want it pre-installed? Select "Other (Raise a Ticket)" from the OS dropdown and mention "3X-UI VPN panel" in your ticket. We'll deliver your VPS with 3X-UI installed and SSL configured — just log in to the web panel and add your first client. No extra cost.

Prefer to install it yourself? Choose Ubuntu 22.04 LTS or Debian 12, then follow the steps below.

2

Update and Prepare Your Server

Once your VPS is provisioned (typically within a few hours), you'll receive your server credentials via email.

# Connect to your VPS ssh root@YOUR_SERVER_IP # Update system packages sudo apt update && sudo apt upgrade -y # Install required tools apt-get install wget curl -y
3

Install 3X-UI Panel

Run the official 3X-UI installer:

# Run the official 3X-UI installer bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)

The installer will ask you to:

  1. Set a custom admin username and password
  2. Choose a panel port (use a non-standard port for security)
  3. Set a web base path (e.g., /secretpath)
Pro tip: Write down your admin credentials and panel port. You'll need them to access the web interface.
4

Access the Web Panel

Open your browser and navigate to your panel:

http://YOUR_SERVER_IP:YOUR_PORT/YOUR_PATH

Log in with the credentials you set during installation. You'll see the 3X-UI dashboard with system stats, connection status, and the inbound management panel.

5

Create Your First VPN Connection

Set up your first inbound connection:

  1. Go to Inbounds and click Add Inbound
  2. Set a descriptive name for your connection
  3. Select protocol: VLESS (recommended with REALITY for best security)
  4. Configure REALITY settings: uTLS fingerprint, destination domain, generate keys
  5. Add a client with an identifier email
  6. For REALITY: set Flow to "xtls-rprx-vision"
  7. Save and copy the connection URL
6

Connect from Your Devices

Use the connection URL or QR code from Step 5 with one of these clients:

◆ macOS

Download FoXray from the App Store. Import your connection URL. Activate the VPN and browse privately.

◆ Windows

Download Invisible Man XRay from GitHub. Import the connection URL from your clipboard. Click Run to connect.

◆ iOS

Use FoXray or Streisand from the App Store. Paste or scan your connection URL to connect instantly.

◆ Android

Use v2rayNG from Google Play. Import your configuration via QR code or connection URL.

// 5. Pre-Installation & Custom Setup

Unlike other providers that hand you a blank server, DejavuHost offers application pre-installation at no extra cost. Whether it's 3X-UI, OpenVPN, WireGuard standalone, or any other VPN solution — tell us what you need and we'll set it up.

Here's how it works:

  1. Select "Other (Raise a Ticket)" from the OS dropdown during checkout
  2. In your ticket, mention the application you want pre-installed (e.g., "3X-UI VPN panel on Ubuntu 22.04")
  3. Complete your order as normal
  4. Our team provisions your VPS with 3X-UI installed, SSL configured, and ready to add clients
  5. You receive your panel login credentials and get started immediately

This applies to 3X-UI and any other application you need. No extra cost, no hassle — your server arrives ready to use.

// 6. Troubleshooting

◆ Can't Log In

Reset credentials with: x-ui admin reset. Check your firewall allows traffic on your panel port.

◆ Connection Drops

Verify the protocol and port match between server and client. Try alternative protocols (Trojan, ShadowSocks) if one is blocked.

◆ SSL Certificate Issues

Access the panel via HTTP temporarily. Reissue the certificate through the panel settings or run the built-in ACME renewal.

◆ Slow Speeds

Check server bandwidth with speedtest-cli. Ensure your VPS location is close to your physical location for lowest latency.

// 7. Wrap-Up

3X-UI gives you a full-featured VPN management panel for free — multi-protocol support, user management, traffic monitoring, and SSL automation, all through an intuitive web interface.

Our VPS Start plan ($24.99/mo) is all you need for a personal VPN serving 1-3 users. Scale up to VPS Medium ($39.99/mo) for multi-user deployments with unmetered bandwidth, or VPS Premium ($64.99/mo) if you're running a small VPN provider.

Or skip setup entirely — we'll pre-install 3X-UI and have it ready for you to add clients the moment you log in.

Ready for private, unrestricted internet?

Deploy your own VPN server in minutes.

VPS Plans
From $11.99/mo
Dedicated
From $69/mo
Locations
12
Uptime SLA
99.9%