Guide · About 10 min · Desktop & Android

v2rayNTutorial

This guide walks through the first-time V2Ray client setup in four steps: import subscription → choose proxy mode → connect → verify. v2rayN covers Windows, macOS, and Linux desktops; v2rayNG covers Android. Each step shows where to find the settings in both clients and how to tell if it worked.

Platform differences: This guide uses the v2rayN desktop app as the primary reference and notes the corresponding v2rayNG Android steps alongside. Both clients use the same setting names; the difference is where you find them: v2rayN puts subscription groups, routing mode, and system proxy in the top toolbar, while v2rayNG has them in the bottom menu and the "Settings" page. Interface labels are shown from the Chinese version; in the English version, follow the same menu hierarchy to find the corresponding options.

Prep

Before You Start: Install the Client and Prepare a Subscription Link

Two quick setup steps before the real configuration

Two things to do before you start: install the client and prepare a subscription link. Client installers are available by platform on the download page: choose the v2rayN desktop build for Windows and macOS, the deb or rpm package for your Linux distribution, and v2rayNG for Android. After installing, open the client once to confirm the main window displays correctly, then continue.

The subscription link is provided by your proxy provider. It is usually a URL starting with https://, but it can also be a single-node share link starting with vmess:// or vless://. A subscription link corresponds to a group of server nodes; the client pulls the node list from it in bulk, and every "Update Subscription" syncs the provider's latest node list, so you never have to enter nodes manually.

If the provider only gave you a single-node share link, paste the whole link into the client's "Import from Clipboard" entry; it works the same as importing one node. This guide uses a subscription as the example, but the configuration steps after importing a single node are identical.

v2rayN desktop requires Windows 10 or later, macOS 12 or later, or a mainstream x64 Linux distribution; v2rayNG requires Android 7.0 or later. If your system is too old, upgrade it before installing the client to avoid startup failures.

Treat the subscription link like an account credential: do not post the full link in public groups, forums, or screenshots. When you switch providers, delete the old subscription group and create a new one.

01

Import Subscription

Give the subscription URL to the client and pull the server node list

Importing a subscription is the first step in getting node information into the client. The subscription URL only fetches the node list; how often it updates is up to the provider. If connections act up, run "Update Subscription" once before blaming the node.

v2rayN Desktop

Open the v2rayN main window and find "Subscription Group" in the top menu bar. Click "Subscription Group Settings", then in the popup create a new group: give it a name (the provider name works well), paste the subscription URL into the "Subscription URL" field, and click Save. Back on the main screen, open the "Subscription Group" menu again and click "Update Subscription". The status at the bottom of the window shows the request progress; when it finishes, several node entries appear in the server list on the left, each showing address, port, and protocol type.

v2rayNG Android

Open v2rayNG, go to the "Subscription" tab in the bottom navigation, tap the add button in the top-right corner, paste the subscription URL in the field, and save. Return to the subscription list and tap the refresh icon to update. When the update finishes, switch to the "Servers" tab and the node list shows the server entries pulled from the subscription.

One client can maintain multiple subscription groups at the same time. If you have several subscription links, create a separate group for each provider and update them group by group. Groups do not affect each other; switching providers only means changing which group holds your active node.

Nodes in a subscription change as the provider adjusts its lineup, so update about once a week. Nodes unused for a long time may be reclaimed by the provider. If a connection fails, update the subscription first, then check whether any usable entries remain in the node list.

If a subscription update fails, first confirm the URL was copied in full with no extra spaces, then check whether your current network can reach the subscription domain. If it keeps failing, try a different network. For more detailed troubleshooting, see the Problem Diagnosis page.

02

Choose Proxy Mode

Set routing rules and pick an active node

Proxy mode determines which traffic goes through the proxy and which goes direct. V2Ray clients come with three common modes: Bypass Mainland, Global, and Direct. Bypass Mainland sends mainland China domains direct and overseas domains through the proxy; it is the recommended choice for daily use. Global sends all traffic to the server, which suits scenarios that need a fixed exit IP. Direct proxies nothing, and is used to temporarily disable the proxy or test the local network.

v2rayN Desktop

Find the routing mode dropdown in the top toolbar; it defaults to "Bypass Mainland", so you can leave it as is. Then select a node in the server list: click the node row, or right-click the node and choose "Set as Active Server". The selected row gets a marker and the server name in the toolbar updates.

v2rayNG Android

Go to "Settings" → "Routing" and set the routing mode to "Bypass Mainland". Return to the "Servers" page and tap the target node to select it; the selected node shows a checkmark.

Choose nodes based on real-world experience. The latency number only reflects handshake speed; download speed also depends on server bandwidth and line load. Try two or three nodes from the same subscription, open overseas sites to compare loading speed, then stick with the one that performs consistently.

Routing mode and system proxy are two independent settings: routing mode decides how traffic is split, and system proxy decides whether traffic enters the client. In daily use they work together; "Bypass Mainland" routing plus "Auto Configure System Proxy" is the standard combination.

03

Connect

Turn on the system proxy or VPN tunnel so traffic enters the client

Connecting essentially routes system traffic to the client's local port. The desktop side does this through the system proxy, and the Android side does it through a VPN tunnel; the two paths are enabled differently.

v2rayN Desktop

After selecting a node, find the "System Proxy" dropdown in the top toolbar and choose "Auto Configure System Proxy". The system proxy now points to v2rayN's local port, the tray icon in the taskbar turns green, and the status bar in the main window starts showing upload and download traffic. Some programs ignore the system proxy (certain games and command-line tools, for example); if you need to cover them, enable TUN mode in settings. TUN mode takes over traffic at the network adapter level and covers more, but it conflicts with other VPN software, so close other VPN clients before enabling it.

v2rayNG Android

Tap the connect button at the bottom of the main screen. On first launch, the system shows a VPN connection request; tap Allow and confirm. Once connected, the button changes to a disconnect state, a VPN icon appears in the status bar, and the connected duration shows next to the node name.

v2rayN's default local ports are 10808 (SOCKS) and 10809 (HTTP); you normally do not need to change them. If a port is taken by another program, change it in settings and update any app configuration that depends on it.

Do not close the client window right after connecting. Closing v2rayN's main window minimizes it to the system tray and the proxy keeps working. Swiping v2rayNG away from recent apps may interrupt the VPN, so you would need to tap connect again.

04

Verify It Works

Use a browser and an IP lookup to confirm traffic goes through the proxy

Open a browser and visit a site outside mainland China; if the page loads normally, the proxy path is working. Then visit an IP lookup site to see the exit IP's location. If it matches the node location (a node in Hong Kong shows Hong Kong), traffic is indeed going through the server. If the exit IP is still your local address, the proxy is not taking over browser traffic; go back to step 3 and check the system proxy status.

In v2rayN you can open the log window from settings; domains visited in the browser appear line by line in the log, which is direct evidence that traffic passes through the client. v2rayNG's "Run Log" page provides the same records; combine them with the connection duration to judge whether the link is stable.

To dig deeper into line issues, use ping and tracert (Windows) or traceroute (macOS, Linux) from the command line: no response when pinging the node address means the line is down, and tracert shows which hop the packets stop at. These two commands are for troubleshooting only, not for daily verification.

  • Browser can open overseas sites
  • Exit IP location matches the node
  • v2rayN status bar traffic counters keep increasing
  • v2rayNG status bar shows connection duration
  • Mainland China sites are unaffected (Bypass Mainland mode)

If all five checks pass, the configuration is successful. If any check fails, follow the troubleshooting order on the FAQ page: first confirm the subscription has not expired, then confirm the node is usable, and finally check the routing mode and system proxy status. For deeper issues such as slow speeds or DNS resolution problems, see the symptom-by-symptom sections on the Problem Diagnosis page.

If overseas sites open but some pages load slowly during verification, the DNS resolution path is usually the culprit. Try switching the client's DNS setting to the server recommended by your provider, or follow the DNS section of the Problem Diagnosis page to adjust step by step.

Connection Troubleshooting Quick Reference

All nodes time out after updating the subscription

First confirm the subscription has not expired, then copy the latest subscription URL from the provider panel and import it again. If the subscription is still valid, check whether your local network can reach the subscription domain; some network environments block subscription requests, so try switching to mobile data.

Browser works, but a specific app does not use the proxy

On desktop, check whether the app has its own proxy settings and point them at v2rayN's local port; or enable TUN mode to take over all traffic. On Android, add the target app to the proxy scope in v2rayNG's per-app proxy settings.

Mainland China sites get slower after connecting

Set the routing mode to "Bypass Mainland" so mainland domains go direct. If it is already set and sites are still slow, check whether the DNS settings were changed and refer to the DNS section of the Problem Diagnosis page.

Browser reports a proxy server error after the system proxy is enabled

The usual cause is v2rayN not being connected or the node being dead. First confirm the traffic counters in the client status bar are increasing, then update the subscription and switch nodes, and finally check that the "System Proxy" dropdown is still set to "Auto Configure System Proxy".

Next: Advanced Configuration & Troubleshooting

Download v2rayN

Installers for Windows, macOS, and Linux.

Go to Download
Download v2rayN