Skip to content

VPS Forwarding — Use Proxy from Anywhere

Ask AI

Ready taskDo it with me, step by step

Chat assistants

Open in ChatGPTNew tabOpen in ClaudeNew tab

Coding agents

Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the web

Copy

View as MarkdownPlain text for AI tools
See the prompt
Read https://xproxy.io/document/vps-forwarding-to-use-difference-place.md, the XProxy guide "VPS Forwarding — Use Proxy from Anywhere". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now).
Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.

The app opens with the prompt filled in. Nothing runs until you press Enter.

Use your proxies from anywhere without changing your home router. A cloud server (a VPS) gets the customers' connections and passes them to your box.

You need: a VPS with Ubuntu and SSH access (root, or a user with sudo), and a plan that includes VPS forwarding (Premium or above). It takes about 10 minutes.

In short

How it works

Customer, then the VPS, then a tunnel to your box, then the mobile network. Customers only see the VPS address.

Why use it

No router setup. It works when your router cannot forward ports. The VPS address stays the same, and your home IP stays hidden.

One click for the hard part

The panel checks the VPS, installs the relay and starts the tunnels for you. If a check fails, nothing is changed.

Customers connect to the VPS. A tunnel carries the connection to your box, so your router stays as it is and your home IP stays hidden.

Which way is right for you?

There are three ways to reach your box from outside. This guide covers VPS forwarding.

What to compareRouterVPS forwardingVPN
What you doForward ports on your home routerConnect a VPS to your box onceAdd your box to a private VPN
Who can connectAnyone with your IP or domainAnyone with the VPS addressOnly devices on that VPN
Needs router accessYesNoNo
Works if your ISP shares one IP between customersNoYesYes
You pay forNothing extraA VPS from any providerNothing extra (depends on the VPN)

Router instead: Open your router for the box. VPN instead: in your panel open General Settings → System Setting and look for VPN tunnel setting (Tailscale, ZeroTier or OpenVPN).

Set up VPS forwarding

Step 1 of 7

Open Forwarding Ports

Open your box panel. In the left menu click General Settings, then Forwarding Ports 1.

A guided setup has 4 parts: Security, Connect VPS, Services and Go live. Click Protect all in one step 2.

Prefer to see every setting at once? Turn on Expert mode at the top of the page.

Relay or WireGuard?

Both engines carry the same services. WireGuard does more and runs faster; Relay is lighter on the VPS.

What to compareWireGuard + Direct Mode (recommended)Relay
Speed with many donglesAbout 330 Mbit/s in our 32-connection test: the VPS forwards packets in the kernelAbout 40 Mbit/s in the same test with one tunnel. Raise Parallel tunnels per port to go faster
Customer IP on the boxEach customer's own IP, in the proxy logs and for the IP whitelistThe VPS, for every customer
SOCKS5 UDP (QUIC, games, calls)On every SOCKS5 port: main, separate SOCKS5, IPv6 and Dual StackOn the main proxy port of each modem
Proxy rules on the boxLogins, whitelist, website rules, limits and logs see the real customerThe same rules, but the box sees the VPS as the client
VPS CPUAbout 1 vCPU per 300 Mbit/s. Choose 2 vCPU for 10 or more donglesLow. Fine on the smallest 1 vCPU VPS
Ports on the VPS firewallUDP 65001, plus one block of 400 UDP ports in 61000–64999 with Direct ModeTCP 65001–65004, plus UDP 32768–60999 with UDP Socks5
Only Relay has—Network isolation (each modem over its own SIM), Process isolation, and a tunnel over TCP when UDP to the VPS is blocked

Switching engine is one setting in Services, then Go live. Customers keep the same VPS addresses and ports.

How ports work

Each shared service opens a port on the VPS. VPS port = box port + offset. With offset 0, the VPS port is the same as the box port. The Services step shows the exact address of each service before you go live.

ExampleBox portOffsetVPS port
Box A, first modem400104001
Box B, same VPS400110005001

If two services, or two boxes on one VPS, want the same port, they clash. Go live checks which ports are already used on the VPS. Change the offsets under Advanced to fix it.

Something not working?

You seeWhat to do
"This function is available on higher plan license only"VPS forwarding needs the Premium plan or above. See Manage your subscription.
You cannot continue the Security stepSet the logins first. A service that you switch off in Services does not need one.
Test connection failsCheck the address, SSH port, user and password or key. The VPS needs Ubuntu, and a root or sudo user.
A check in Go live failsNothing was changed. Read the failed line, fix it, then click Go live again.
Ports are not reachable from the internetOpen the ports from the Services step in your VPS provider's firewall. Add UDP 65001 for WireGuard, the UDP block the panel shows (in 61000 to 64999) for Direct Mode, and UDP 32768 to 60999 for Relay's UDP Socks5.
SOCKS5 UDP apps get no answer through the VPSTick Real client IP & UDP Socks5 (WireGuard) or UDP Socks5 (Relay) under Advanced, open the UDP ports above, and test with the test script.
A port is red in MonitoringClick Run doctor. It lists what is wrong and changes nothing.
Two boxes clash on one VPSGive each box a different port offset under Advanced.
Still stuck?A technician can look at your device with a one-time PIN, or chat with us on Telegram.