GuidesFirst connection

Set up your first connection with V2Ray subscription import

First, make sure servers appear in the subscription group; then confirm browser requests use the selected route. Once you have the client and subscription URL ready, follow these steps in order—there's no need to change advanced settings first.

01 Subscription

Import a Subscription and Update the Server List

If you haven't installed a client yet, choose the right installer from the client downloads page. Once installed, get the full subscription URL from your provider. The URL on your account page is usually for account management, while an individual server share link describes only one connection; neither belongs in the subscription group settings. Subscription URLs may contain access credentials, so copy the full URL and paste it only into the client's URL field. Don't post it in public groups or include it in screenshots shared for troubleshooting.

v2rayN: Add a Group, Then Update It

In the main window, open Subscription Groups → Subscription Group Settings and choose Add. Enter a recognizable name in the remarks field, paste the subscription URL, check that there are no spaces or line breaks at either end, and save. Return to the main window and select the new group. From the Subscription Groups menu, run the update command for the current group; if the only option is Update All Subscriptions, you can use that instead. For the first update, use your current network. Don't choose an update option that requires an existing proxy, since you haven't verified a working connection yet.

v2rayNG: Fetch Servers from the Main Screen

Open the top-left menu, go to Subscription Group Settings, tap Add, enter a remark and subscription URL, then tap Save or the checkmark. Return to the main screen, open the top-right menu, and choose Update Subscription. Updating isn't done on the add-group screen: that screen saves the URL, while the main screen's update menu fetches the servers. When the update finishes, switch to the group you just added and make sure it contains selectable entries, not just an empty group name.

If the list is still empty, first check that you're viewing the group you just updated, then review the update message. For 401 or 403 errors, return to your subscription provider's site and check that the URL is valid and your account has access. For a timeout or parsing error, use Troubleshooting to investigate the subscription issue. Don't add the same URL repeatedly: duplicate groups won't change the request result and can make it easier to select the wrong server in the next steps.

02 Route Traffic

Choose a Proxy Mode

Once servers appear in the list, decide how app traffic should reach the client. There are two layers: system proxy, TUN, or Android VPN determines whether traffic enters the client; routing rules determine whether traffic is proxied or connected directly. Both affect the result. For your initial check, choose one way to route traffic into the client and leave existing routing and DNS settings unchanged. That makes it easier to identify which layer needs attention if something goes wrong.

Use the System Proxy on Desktop; Keep Android's Default Scope

On a desktop where v2rayN can configure the system proxy, select Set system proxy automatically from the control at the bottom of the window or the tray menu, and leave TUN off for now. Then test with a browser that follows system proxy settings. If the browser has its own proxy configured, an extension controls its proxy, or the desktop environment hasn't applied the client's settings, the selected menu option alone doesn't prove that traffic is being routed through the client.

In v2rayNG, don't look for the desktop version's automatic system proxy setting. When you tap Connect on the main screen, the client uses the system VPN interface to receive app traffic. Keep the default app scope for the first test. If per-app proxying was configured earlier, check that the browser you plan to test is included. If another VPN is already running on the device, confirm that you can disconnect it temporarily. On managed devices, keep network settings provided by your administrator.

Split Routing: Check the Rules Before Changing Them

In v2rayN, open Settings and check Routing Settings; just note which routing configuration is active. For your first check, choose a destination that the current rules should send through the proxy. A site that matches a direct-connection rule may still load, but that only shows direct access is working. Don't clear all the rules just to troubleshoot; this could affect local network services that are supposed to connect directly. See FAQ for more on rule order, match conditions, and outbound tags.

When to Try TUN

If you've confirmed that the browser works through the system proxy but an app still ignores it, test TUN separately. Note the current settings first, follow the client's prompts for permissions, and retest only the same app. If enabling TUN disrupts access that worked before, turn it off and return to the previous setup. Don't change the server or DNS at the same time as enabling TUN, or you won't know what caused the change.

03 Connect to a Server

Choose a Server and Connect

Return to the group you updated in step one and choose a few candidate servers. Compare them on the same network, without switching networks or servers during a test. A server passes only if the request completes; response time is useful only for comparing servers that have already passed. A server that looks fastest but repeatedly times out isn't a good choice for your first connection test.

v2rayN: Run a Real Connection Test and Set the Active Server

Select a candidate in the server list, right-click, and choose a latency test option labeled Real Connection—not one that checks only TCP connectivity. A successful TCP connection means the remote port responded; it doesn't mean the client completed a test request using the server's configuration. Wait for the results and choose a server that returns a result twice in a row. Set it as the active server from the right-click menu, then check the active server shown in the main window. Clicking a row only selects it; a completed test won't make it active automatically.

v2rayNG: Select a Server, Then Start the VPN

Tap the server you want in the list, then tap Connect at the bottom of the main screen. The first time you start it, Android will show a VPN connection request; check that it comes from the client you're using, then approve it. Return to the main screen and check that the button state changes and the system shows that the VPN is running. To switch servers, disconnect first, select another entry, and connect again. This makes it easier to match any new prompt with the action you just took.

An active server selection or a running VPN is only the starting point for connection checks. Even a successful real connection test proves only that the test request went through; it doesn't show that everyday apps are using that route. If the client immediately returns to a disconnected state after you start it, check the error from that moment rather than repeatedly testing in a browser or cycling through every server. If the log clearly says a local listening port is already in use, first check whether another client instance is still running. Avoid changing multiple ports without knowing the cause.

04 Verify the Connection

Use Your Browser and Logs to Verify the Proxy

Keep the network, browser, and active server unchanged. Open a reachable page that the current routing rules are expected to send through the proxy. Open a new tab and refresh, noting the time and destination. An already-open tab still showing content doesn't count as a test—it may be displaying cached data. Avoid opening many sites at once so background requests don't make the logs harder to read.

Check Requests from the Same Time

In v2rayN, check the logs at the bottom of the main window. In v2rayNG, open the running log from the menu. Look for entries related to the destination around the time you visited it. If the log shows an outbound tag, check that it matches the outbound used for proxy traffic in your routing configuration, not direct. Seeing the destination request use the expected outbound is more reliable than checking a taskbar icon or connection button alone. Some versions show only errors or omit access records by default, so the absence of a matching log entry doesn't prove that the proxy isn't working.

To compare results, note the current state, briefly turn off the desktop system proxy or disconnect the Android client, and revisit the same destination. Then restore the proxy and test again in the same browser. You can also compare results using a trusted service that reports your network egress, but first make sure that the service itself is expected to use the proxy. If the destination matches a direct-connection rule, an unchanged egress is normal. Even a successful check applies only to the app and destination tested; other apps or destinations may use a different route.

Choose Your Next Step Based on the Results

If the server test passes but the app you tested doesn't behave as expected, first check whether the desktop browser follows system proxy settings or, on Android, whether the app is included in the proxy scope. If you can confirm that the browser request reached the client but the outbound is direct, return to split routing and check the relevant rule instead of reimporting the subscription. If the request matched a proxy outbound but failed, note the time and the first related error, then use Troubleshooting to investigate symptoms such as server timeouts, DNS issues, or system proxy settings not taking effect. Before sharing logs, redact the subscription URL and account identifiers.

Once the connection is verified, note the working subscription group, server name, and connection method. If a later subscription update replaces or removes the active server, choose a new one from the updated list and repeat the checks in this section. This keeps subscription changes separate from your local proxy settings, so you won't have to start the setup from scratch each time.