Add an outbound server
Created: November 23, 2026.
Updated: November 30, 2026. The main forms and VLESS import were checked against the 3x-ui 3.12.0 source code. Button locations and supported parameters may differ in other versions.
What you will configure
Suppose you have two servers. Your phone, computer and other devices connect to the first one. The second is in another country and will serve as an additional internet exit.
Your device → Server A (entry) → Server B (exit) → Internet
By the end of this guide, server A's panel will have an outbound connection to server B. You can use it for connection tests and routing rules. However, importing the outbound does not automatically send user traffic through server B: first create a rule that selects the new exit. That is the next step in the routing guide.
This guide covers two common connection types: VLESS REALITY (TCP) and VLESS XHTTP. Both follow the same procedure: obtain a link from server B, import it as an outbound on server A, save and test it. Only the transport settings differ. You can also add a third server to an existing cascade this way and configure failover.
Do not confuse inbounds and outbounds: an inbound accepts client connections; an outbound determines where the VPS sends their traffic. Here we add an outbound to an already working server A, rather than creating another inbound.
Before you begin
- 3x-ui is installed and working on both servers. You have access to both web panels.
- Server B accepts VLESS REALITY or VLESS XHTTP and is reachable from server A.
- You have a working link for a specific connection or can create a separate client on server B. If XHTTP uses a CDN, the CDN must already be working.
Recommendation: create a dedicated client on server B for the inter-server connection, such as backup-from-a. You can then disable it without affecting your devices' regular connections.
A VLESS link contains secrets
A vless://… link includes the client identifier (UUID), server address and connection settings. Do not publish it on GitHub, in support requests, public screenshots or logs. This guide uses fictional server names and tags only.
1. Copy the connection link from exit server B
- Open the web panel on server B, the server you want to use as an internet exit. This is not server A's panel.
- Open Clients. Find a client assigned to the VLESS REALITY or VLESS XHTTP inbound you want to use.
- If you have not created a dedicated client for the inter-server connection yet, create and enable one and assign it to the selected inbound. For REALITY TCP with Vision, check
xtls-rprx-vision; do not add it manually to XHTTP. - Click the ⓘ client information icon in the client's row.
- Find the VLESS link and copy it in full. It starts with
vless://. Do not confuse it with the subscription link, which starts withhttps://.
Copy the link for the exact profile you need. A client assigned to several inbounds may have several links. A REALITY TCP link usually specifies type=tcp (or RAW in relevant versions) and security=reality, while XHTTP uses type=xhttp and the corresponding security type. The panel parses the settings from the link.
If server B runs our project: use the external address and port from a working profile. Managed REALITY usually uses external TCP/443; the internal port 8443 is not intended for direct connections from another VPS. For XHTTP through nginx or a CDN, also use the public address and path, not Xray's internal address.
2. Import the connection on server A
Now switch to the web panel on server A, where your devices connect.
- Open Xray → Outbounds.
- Click the blue + Outbound button.
- Select the JSON tab in the creation dialog.
- Above the JSON editor is a separate field with
vmess:// vless:// …hints and an Import button. Paste the copiedvless://link into it. - Click Import. The panel parses the link and fills in the outbound form. After successful import, the main settings tab opens.
- Set a descriptive Tag, such as
backup-se. The tag must be unique: routing rules use it to identify this server. - Check the imported settings against the table below.
| What to check | VLESS REALITY (TCP) | VLESS XHTTP |
|---|---|---|
| Protocol, address, port, UUID | VLESS and values from the original link | VLESS and values from the original link |
| Transport | TCP (RAW) | XHTTP |
| Security | REALITY | As specified in the original link, such as TLS |
| Flow | xtls-rprx-vision if specified in the original profile |
As in the original link; do not add Vision manually |
| Additional fields | SNI, public key, fingerprint, short ID | Host, Path, Mode, TLS or REALITY settings; additional XHTTP settings if used |
Host (the HTTP hostname) and SNI (the server name used when establishing TLS) do not always match the connection address, especially when using a CDN (content delivery network). If the link includes extended XHTTP settings, the panel imports supported fields, including data from extra. Compare them with the original working profile if you use non-standard settings. For managed XHTTP CDN, also check VLESS Encryption if specified in the link: the receiving side and the outbound must use compatible encryption settings. Do not change the path to / or disable TLS verification to conceal a connection error.
If the address or UUID is empty or the security type does not match the original link, return to the import step. If everything is correct, click Create: the new tag will appear in the table.
Creating and saving are separate actions
Adding a row changes the prepared configuration in the interface. To apply it to Xray, click Save on the main Xray configuration page. Active connections may be briefly interrupted when the configuration is applied.
3. Test the connection over HTTP
After saving, return to Xray → Outbounds.
- Above the list, on the right side of the table, select HTTP as the test mode. Do not use
TCP: TCP checks connection reachability but does not confirm that the proxy can actually carry an HTTP request. - Find the
backup-serow and click the lightning bolt button in the test column. - Wait for the result. A successful HTTP test usually displays latency in milliseconds. An error means you need to check the settings and connectivity between the servers.
A successful test confirms that Xray could perform an HTTP check through the selected outbound. It does not mean your phone's traffic already uses server B. To verify the actual route, first create a routing rule, then check the exit IP using your device.
If the test fails, check in order: whether the selected connection works on server B; whether the public domain and port are correct; whether the client is enabled; and whether UUID, transport, flow and security settings match. For XHTTP, also check Host, Path, Mode, TLS/REALITY settings and the CDN if used. Verify TCP reachability between the VPS instances. Fix the specific cause rather than changing every outbound at once.
4. Route traffic through the new server
Open Traffic routing: how to control traffic. It covers rules for individual websites, clients, XHTTP inbounds and all user traffic.
For example, you can create a rule for YouTube only, route it through backup-se, save the configuration and open YouTube on a device connected to server A. This tests the new route without changing how other websites are accessed.
If you already have a cascade, do not delete the installer-created cascade-exit outbound. You can use the new backup-se connection alongside it, including as a backup.
How to undo the changes
If you have not created any rules using backup-se, simply delete the new outbound under Xray → Outbounds and click Save again.
If you have already added routing rules or a balancer, first remove their references to backup-se and save the changes. Only then delete the outbound. You can disable the client on server B separately once you confirm that no other servers need it.
Traffic routing and four examples · Cascade failover · Cascade across two VPS instances
Attribution and use of materials
© 2026 xPROMSx contributors · 3X-UI AUTO NGINX
Our material may be copied and distributed under the GNU GPL-3.0-only license, provided the attribution and link to the original are retained.
Original source: https://xpromsx.github.io/3x-ui-auto-nginx/guides/import-reality/