Install v2rayN and v2rayNG and Configure Subscriptions

In short, most readers are online within minutes. This walkthrough covers installation on each platform: importing a subscription, choosing a server, relay choices and Advanced Options.

Illustration of multi-platform devices connecting securely through an encrypted tunnel

Windows installation with v2rayN

On this platform, extract it to run, and delete the directory to remove it; nothing is written to the registry. The desktop client is portable.

  1. Save and extract the Windows ZIP

    Visit the download page, store the newest Windows ZIP for v2rayN, and right-click it to select Extract All. Unpack into a short folder path that uses only plain characters.

    No installation needed:v2rayN travels as a portable directory. Extract it, run the executable, and delete that directory when you are done; no registry item is created.

  2. Permit the Windows publisher alert

    Portable versions are not digitally signed, so SmartScreen may warn. Select More info and Run anyway, then launch v2rayN.exe.

  3. Insert a subscription in choices

    Select the lower-left plus, paste a subscription Address that starts with http or https, store it, and close the alert. The Subscriptions window then shows the saved item.

  4. Refresh the subscription and select a server

    In practice, The server collection fills in automatically; double-click a server to select and establish a connection. Close the choices window, then select Subscriptions and Refresh Subscription in the toolbar.

  5. Set the system-wide relay

    On this platform, right-click the v2rayN notification area icon and select a choice under Relay window: Policy choice relays only sites that need it, All-data flow choice sends all data flow through the relay, or Bypass choice temporarily disables it.

  6. Check that the connection runs

    Launch a web web browser and check an IP check page. If the IP shown belongs to the relay region, the installation is working and the client is ready.

    Tip: Long-term All-data flow choice also relays domestic sites and may slow them; Policy choice is better for daily run.

Set up v2rayN on macOS

Before continuing, A safety alert appears the initial time you launch the client. Select the correct version for Apple Silicon or Intel.

  1. Select the bundle for your Mac chip

    Visit the download page and match the bundle to your Mac chip. M-series Macs need Apple Silicon; older models run Intel. Check the Chip field under About This Mac if unsure.

  2. Put the client in Applications

    Launch the Archive, take out v2rayN.client, and place it in Applications to finish the macOS installation.

  3. Permit the macOS safety prompt

    On initial launch, Gatekeeper may block the unsigned client. Launch Privacy and Safety in System Choices and select Launch Anyway, or hold Control, select the client, select Launch, and confirm.

    Once the alert is approved, a double-click opens the client normally. The alert is shown only once for an unsigned client.

  4. Insert a subscription and establish the Address

    macOS follows the Windows sequence: insert the Address in Subscriptions, refresh the collection, and double-click a server to Address.

  5. Permit macOS internet access

    The initial time the OS relay or TUN path selection starts, macOS requests permission. Select Permit; this is a routine safety alert.

    For this platform, It returns without different alert. If the top bar icon disappears, reopen v2rayN from Launchpad.

Set up v2rayN on Linux

The command line is involved, but the installation logic is unchanged. Linux uses the identical cross-platform client as macOS.

  1. Select a Linux bundle

    Run the download page to select a bundle for your distribution: .deb on Debian or Ubuntu, .rpm on Fedora or RHEL. Match the CPU with x64 or ARM64.

  2. Set up and launch the client

    On Debian or Ubuntu, run sudo dpkg -i v2rayN_*.deb; on Fedora or RHEL, run sudo rpm -i v2rayN_*.rpm. After installation, select v2rayN from the client window or type v2rayN in a terminal.

  3. Resolve absent libraries

    If .deb reports absent libraries, run sudo apt --fix-broken install. On .rpm systems run dnf install or yum install as indicated by the fault message.

  4. Insert the subscription on Linux

    On Linux, insert the Address under Subscriptions, refresh the collection, and double-click single server to start the connection.

  5. Configure OS relay or TUN

    On GNOME, KDE and similar desktops, set the nearby receiver receiver exposed by v2rayN in Internet relay choices, or turn on TUN path selection in v2rayN to path data flow without editing system choices.

    On a machine without a desktop, run the Xray or V2Ray core directly with a installation document.

Configure v2rayNG or v2flyNG on Android

The two Android clients act nearly the identical, so this walkthrough runs for either single.

  1. Set up the APK on Android

    Get the v2rayNG or v2flyNG APK from the download page. If Android asks to permit unknown sources, permit it to finish installation.

  2. Insert the subscription Address

    Launch the client, press the top-right window, select Subscription Groups, press the plus icon, paste the Address, and store it.

  3. Reload the subscription collection

    The server collection appears after a moment. Pull down on the main window to refresh, or press Refresh Subscription in the window.

  4. Measure delay and select a server

    Press the performance-check icon at the top right, wait for the server collection, then select the item with the lowest delay.

  5. Enable VPN mode

    Press the lower-right Address button. Permit the VPN request on the initial connection to start the relay connection.

  6. Select a path selection choice

    In choices select VPN choice (default, routes all mobile data flow) or Relay-only choice (exposes only a nearby relay receiver receiver and may need per-client installation).

    Tip:Insert the client to the battery optimisation exempt collection and turn on automatic start; some mobiles suspend background services.

Adding a subscription Address

Three approaches cover most situations. Subscription import follows the identical pattern in every client.

Choice 1: paste the subscription Address

Refresh the subscription to pull all servers; an automatic refresh interval can be set afterwards. Launch Subscription Choices, insert a new item, paste a Address beginning with http or https, and store.

Stage 2: read a subscription QR code image

If the provider provides a QR code image, select Read QR code image to Import and point the camera at it. Mobile clients can read codes directly.

Stage 3: enter single server manually

If you only have a few servers, copy a share Address beginning with vmess, vless, ss or trojan and run Paste from Clipboard.

Note:See Get your own Address from a trusted provider or a server you operate. This page does not provide or sell Subscriptions or server details; only client downloads and walkthroughs.subscription explainer for the mechanism.

Key points: Which Path selection choice Should You Select?

Run the diagram below to select a choice. Window labels differ slightly between programs, but the logic is identical.

Diagram of the three traffic paths: PAC mode, Global mode, and TUN mode
Green = bypass connection to sites in domestic Chinese mainland; Blue = routed through a relay server to reach sites outside domestic Chinese mainland; Orange = TUN path selection intercepts everything initial, then splits data flow by policy.

Policy choiceSuggested choice

It stays quick and leaves nearby services alone. Policy-based path selection sends only the needed sites through the relay and connects domestic Chinese sites directly.

Key points: All-data flow choice

It can force an client that ignores policies to run the relay. All-data flow choice sends every request through the relay, with no distinction between domestic and international sites.

Key points: TUN path selection

It does not depend on per-client relay choices and suits games and command-line utilities. TUN path selection intercepts data flow at the system internet layer and then splits it by policy.

Skip the relay for LAN and domestic Chinese mainland

Bypass choice is useful for temporarily bypassing the relay or diagnosing a fault. It avoids the relay for LAN and domestic Chinese mainland Addresses.

Key points: Advanced Options: Path selection Policies & DNS

v2rayN is used in the examples; names in v2rayNG and v2flyNG are nearly the identical. Defaults run well, but knowing these choices improves performance and data run.

Custom path selection policies

Read the glossary item for path selection policies before editing custom policies; domain and IP policies can override the default PAC behaviour.

Bundled Geosite with Geoip policy sets

Policy choice uses these policy sets by default, and client revisions refresh them. They cover major domestic sites and IP ranges.

DNS path selection based on domain policies

Read the glossary note on DNS leak explanation; running separate DNS servers for domestic and overseas domains reduces handshake failures and blank sites.

Nearby HTTP and SOCKS receivers

Other software that needs its own relay can point to those receivers and reuse the identical connection. Parameter Choices also shows the nearby HTTP and SOCKS listening receivers.

Managing Servers and Testing Performance

A subscription can contain dozens of servers. Grouping them and running performance checks makes daily run much smoother.

Group servers by subscription

Rarely used groups can be disabled temporarily to shorten testing. When several Subscriptions are added, the client groups servers by provider.

Key points: Delay check vs. real connection check

Check real connection outcomes initial. A real connection check requests a check Address through the server and is slower but more reliable. A delay check only measures internet delay and does not prove that overseas sites can be reached.

Sort servers by delay and turn on automatic selection

After testing, select the Delay column to sort the outcomes. Some versions also provide an automatic quickest-server policy group.

Key points: Remove stale servers

Select Keep enabled servers only or re-download the subscription to replace the old collection and keep checks quick. Subscriptions accumulate inactive servers over time.

Solving Common Connection Issues

Most connection issues can be repaired without a reinstall. Run through the stages below in order.

1

Check the subscription expiry

An lapsed subscription cannot provide working servers or connections. For purchased packages, check that the service is still valid.

2

Manually refresh the subscription

Run Refresh Subscription to get the newest server collection instead of keeping stale details.

3

Check performance and change servers

Single unstable server is normal. Run the built-in delay check and select a server with low delay and a healthy outcome.

4

Check the path selection choice

Confirm whether PAC, Global or TUN is valid, and make sure Bypass was not selected or the OS relay was turned off.

5

Inspect the nearby internet environment

Change between Wi-Fi and mobile data to determine whether the nearby internet or router choices are responsible.

6

Still need assistance?

For more assistance, launch the FAQ page, check the newest version on the download page, or review the beginner pitfalls.

Have not downloaded the client yet?

Get the client for your platform and follow these stages; the initial installation usually takes only a few minutes.

Get Now