v2rayN System Proxy and Routing Modes: Global, Bypass Mainland China, and Direct

Learn how system proxy settings and routing modes work together in v2rayN. Compare global, bypass mainland China, and direct connections, with recommendations for common setups.

At a glance

When setting up v2rayN on Windows for the first time, use the system proxy to route apps that honor this setting through v2rayN, then choose a routing mode. For everyday use, start with “Bypass mainland China.” Use “Global” to compare behavior while troubleshooting rules. To restore direct connections, clear the system proxy and check each app’s own proxy settings. The two commands at the end let you test a direct connection and the local proxy listener separately.

System Proxy vs. Routing

The system proxy determines whether an app sends requests to v2rayN. When you select “Set system proxy,” apps that read the Windows proxy settings use them to connect. Some apps configure their own proxy or ignore the system settings entirely. That’s why a browser may use the proxy while a terminal on the same PC does not.

Routing only applies to requests that reach the v2rayN core. The core uses the active rules to send requests through a proxy outbound, connect directly, or block them. If an app doesn’t send requests to the local proxy, switching from “Bypass mainland China” to “Global” won’t change how its traffic flows.

7.x
v2rayN version referenced for the menu instructions
127.0.0.1
Loopback address used in this guide
10808
Example local mixed port used in this guide

Global vs. Bypass Mainland China vs. Direct

The examples below assume TUN mode is off and use the client’s built-in routing profiles. If you’ve changed the routing rules, the actual matching rules in the active profile take precedence.

Set system proxy + Bypass mainland China

Recommended

Requests that reach the core and match direct rules—such as rules for mainland Chinese domains or IP addresses—connect straight to their destinations. Requests that match neither a direct rule nor another explicit rule use the profile’s fallback outbound. Domain rules match request destinations, not app names, so images, APIs, and sign-in services on the same webpage may use different outbounds.

Best for: Everyday browsing across mainland Chinese sites and sites that require a proxy.

Set system proxy + Global

The built-in Global profile typically routes requests that reach the core through the proxy outbound. System proxy exceptions may still bypass the local proxy, and some apps may not read the system settings at all. To troubleshoot with Global, keep the same node and retry the same destination, changing only the routing mode.

Best for: Checking whether a routing rule is preventing access to a destination.

Clear system proxy + connect apps directly

After you select “Clear system proxy,” apps that follow the system settings and have no separate proxy configuration can connect directly over your regular network. You can keep the current routing profile. Apps that still point to a local port will continue sending requests to the core, so clearing the system proxy doesn’t make every app connect directly.

Best for: Restoring regular internet access or creating a comparison setup that bypasses the local proxy when troubleshooting a webpage.

Switching modes on Windows

These steps use the v2rayN 7.x Windows interface. Note your current routing profile before switching. If your PC is managed by an organization, check whether its system proxy is centrally configured before making changes.

  1. Check the local port

    Open “Settings” → “Parameter settings” and check the local listening options for the port number. The examples below use 127.0.0.1:10808 as a mixed inbound. If HTTP and SOCKS use separate listeners, enter the port for the proxy protocol selected in the app. To simplify troubleshooting, turn off the TUN switch in the main window first.

  2. Set the system proxy

    Select the server you want to use for comparison in the server list and make it active. Right-click the v2rayN icon in the Windows notification area and select “Set system proxy.” Open Windows “Settings” → “Network & internet” → “Proxy” and check that the manual proxy points to the local address and port you just confirmed.

  3. Choose a routing profile

    In the routing dropdown at the bottom of the v2rayN main window, select a profile with “Bypass mainland China” in its name. To review its rules, open “Settings” → “Routing settings.” Check the order of the active rules and their outbounds, then review the final fallback. Don’t rely on the profile name alone to determine how a domain will be routed.

  4. Switch to Global for comparison

    Keep the same node, system proxy, and local port; change only the routing mode to “Global.” Close any existing test connection, then revisit the same full URL. If the site works with Global but not with Bypass mainland China, check the destination domain’s matching rule and the specific failing request first. If both profiles fail, investigate the local listener, node, or DNS.

  5. Restore direct connections for apps

    Right-click the v2rayN tray icon and select “Clear system proxy.” Turn off any browser extensions or app-level settings that explicitly point to the local proxy, then start a new request. Don’t use “Do not change system proxy” as a substitute for clearing it: that option leaves the current system proxy settings unchanged.

Check settings and verify connections

When troubleshooting, first note whether the request reaches the local port, then check which outbound it uses. These are separate questions and can’t be answered by the same symptom: a webpage loading successfully may mean either the proxy outbound or the direct outbound worked.

Browser using the system proxy

System proxy
Set system proxy
Example address
127.0.0.1:10808
App settings
Use system proxy
Routing profile
Bypass mainland China; switch to Global for comparison

Disable browser extensions that override proxy settings before testing, so two sets of settings aren’t active at once.

Terminal with an explicitly configured proxy

System proxy
Can remain cleared
Proxy settings
--proxy http://127.0.0.1:10808
Inbound requirement
This port accepts HTTP proxy connections
Routing profile
Outbound still follows the active v2rayN profile

An explicitly configured proxy applies only to this command; you don’t need to change the Windows system proxy first.

Run the following two commands in Windows Command Prompt. The first disables the proxy for all destinations. The second clears the no-proxy match list and explicitly connects through the local HTTP proxy. If you use a dedicated HTTP port, replace 10808 in the second command with that port. Each command has a 15-second timeout. This is a diagnostic limit, not a node speed test.

curl.exe --noproxy "*" --max-time 15 -I https://example.com/
curl.exe --noproxy "" --proxy http://127.0.0.1:10808 --max-time 15 -I https://example.com/
  • If the second command reports that it can’t connect to the specified port on 127.0.0.1, first check that the core is running and the port is correct, then look in the startup log for listener errors. Switching routing modes usually won’t help at this point.
  • If the second command returns response headers from the destination, that only confirms the request went through the local proxy. To tell whether it ultimately used a proxy or direct outbound, check the core’s access log for the destination domain and outbound at the same time. If the log doesn’t show the outbound, don’t infer the route from the HTTP status code.
  • If the command succeeds but the browser fails, check where the browser gets its proxy settings, system proxy exceptions, and extensions. The browser may be reusing an existing connection; quit and reopen it before testing to avoid mistaking an old connection for the result of the new settings.

Common switching issues

Why is my terminal still connecting directly with Global enabled?

Global routing doesn’t configure a proxy for your terminal. Run the curl.exe --proxy command above, then check whether your terminal tool reads HTTP_PROXY, HTTPS_PROXY, and NO_PROXY, or needs its own proxy configuration.

Why do some mainland China sites fail with Bypass mainland China?

In your browser’s developer tools, open the “Network” panel and identify the domains behind failed requests. Check the main page, sign-in APIs, and static assets separately. Compare the same request with the Global profile and confirm whether the failing domain matched the expected rule. Don’t check only the main domain in the address bar.

Why is an app still using a node after I clear the system proxy?

First check whether the app still points to a v2rayN local port, then check whether TUN is still enabled. If the app reads proxy variables from its startup environment, remove the relevant settings and restart the app before testing again. Don’t use whether v2rayN is still running as the sole indicator of the app’s route.

Why does my browser lose internet access after I exit v2rayN?

Open Windows “Settings” → “Network & internet” → “Proxy” and check whether the manual proxy address still points to a local port that is no longer listening. If the setting was left over from this test, turn it off or restore the previous configuration, then reopen the browser.

Download v2rayN