Open-source clients and documentation

V2Ray Resource HubSetup Guides

Choose a client for your device, start with subscription import, configure routing rules, then test the connection with apps you use regularly.

  • VMess
  • VLESS
  • Trojan
  • REALITY
01 Features and Configuration

Five essential features of V2Ray clients

Load the server configuration into the client, then choose which apps to route through it and where each connection should go.

Subscription group settings
  Alias: name this group
  Optional address: enter the subscription URL
Update the current subscription

Importing subscriptions and updating groups

A subscription is a URL that the client reads periodically to retrieve configuration. Saving the URL does not import any nodes by itself. In v2rayN, add a subscription group, enter the URL, update the subscription, and open the relevant group. Compared with adding nodes one at a time, group updates are easier to maintain when server lists change often. The Android menus differ, but you should still confirm that the updated nodes appear in the expected group. If the list is still empty, check the update error first, then verify the URL format. There is no need to change routing or reinstall the client right away.

Make sure the group contains nodes before choosing one to connect.

02 Downloads by Platform

Download V2Ray clients by platform

Packages are available by operating system and processor architecture. Once you know your device's platform, go straight to the corresponding download section.

Windows

v2rayN

The Windows download page offers a desktop edition and the classic WPF edition. The desktop edition uses a cross-platform interface. If you are familiar with the classic interface, check the WPF download and its system requirements on the download page. First confirm your system type in Settings > About, then match it to the architecture listed for the package.

If you are switching interface versions on the same computer, do not run both clients at once to compare them. Note your current proxy mode and groups, exit the old client, then open the other version on its own. If browsers connect but other apps do not, first check whether those apps use system proxy settings.

macOS

v2rayN

Check About This Mac for the chip or processor name. Choose the Apple Silicon download for Apple chips and the Intel download for models labeled Intel. Both packages may use the same disk image format, so the file extension alone is not enough to tell them apart.

For first-time use, test a browser connection with the standard system proxy before deciding whether you need a virtual network adapter. If a permission prompt appears, identify which step triggered it: an app failing to launch, the system refusing a setting, and a server connection failing are different issues. Do not change the subscription URL before the client has even opened. On managed work devices, check with your administrator about installation and network permissions.

Android

v2rayNG / v2flyNG

On Android, choose the client first, then the architecture. For Xray configurations, start with v2rayNG; for configurations that require v2fly, check v2flyNG. If your device supports arm64, choose the matching package. If you are unsure of the architecture, check the universal version notes on the download page. There is no need to download installers for every architecture.

After installation, check whether the system has granted the client permission to establish a VPN connection. Other apps for filtering, remote work, or similar purposes may also use the system VPN on the same device. If connections drop only when switching Wi-Fi networks or when the screen turns off, check network handoffs and background restrictions separately. Do not confuse intermittent disconnections with an initial installation failure.

Linux

v2rayN

Choose a package format for your distribution, then check the architecture. Debian- and Ubuntu-based systems typically use deb packages, while Fedora-based systems use rpm. Both formats may be available for x64 and arm64. If your distribution is not part of these common families, check its supported package manager rather than assuming any Linux package will work.

Desktop environments, browsers, and terminal apps may not use the same proxy settings. After installation, test an app known to use the desktop proxy. If network tools in the terminal still take the original route, check their own proxy options. Before enabling TUN, verify system permissions and existing routes, especially if your work network or local services depend on the current settings.

03 Open-Source Ecosystem

Project V, V2Fly, and Xray

The interface organizes settings; the core runs the configuration. Keeping these layers separate helps identify where a feature comes from and where to look when something goes wrong.

  1. Configuration inputGraphical client
  2. Apply rulesProxy core
  3. Handle connectionsSelect an outbound
From choosing a node in the interface to the core deciding where a connection goes.
  1. Project V and the history of V2Fly

    The original Project V split proxy capabilities into independently configurable parts instead of putting every operation in a single fixed interface. For example, an inbound describes where connections are received, an outbound describes what handles them, and routing rules connect the two. The V2Fly community later continued maintaining V2Ray Core along these configuration lines. In guides, Project V, V2Ray, and V2Fly usually refer to project history or a core, not the same installer.

    This layered model also helps troubleshoot connection issues. If the client never receives a request from an app, check the app's proxy settings, the system proxy, or the virtual network adapter. If the request appears in the logs but the result is unexpected, check the routing rules and outbound. Note the graphical client, core, and how connections enter the core separately. That is more useful for finding the right documentation than writing down only “V2Ray.”

  2. Configuration compatibility: Xray and V2Fly

    Xray developed from a fork of the V2Ray codebase and is now maintained separately from V2Fly. Their configurations share familiar structures such as inbounds, outbounds, and routing, but differ in protocol extensions, transport layers, security features, and supported fields. A protocol describes how the two ends exchange proxy data; the transport layer describes how that data is carried; security features handle related encryption or authentication. Seeing the same protocol name, such as VLESS, does not mean the transport or security options are interchangeable.

    Some configurations appear in the client list but fail only when the core starts because of an unsupported option. Others start successfully but cannot connect because the node expects different parameters. In the first case, check the field named in the startup log. In the second, verify the node's protocol, transport, and security settings. When comparing two cores, keep the network and test destination fixed. Start with a minimal configuration, and add custom routing and DNS settings only after confirming a basic connection.

  3. What the three open-source clients do

    v2rayN is a desktop graphical client with subscription groups, node management, and routing settings, and can work with supported cores. v2rayNG and v2flyNG are open-source Android clients: the former primarily uses Xray, while the latter primarily uses v2fly. All three make everyday configuration management easier, but an option available in one client may not appear under the same menu name in another. Android's system VPN is also a different operation from enabling a system proxy on desktop.

    Before switching clients, distinguish between subscriptions, single-node links, and local rules. A subscription retrieves a set of configurations, a single-node link represents one connection, and local rules may exist only on the current device. Before migrating, identify what can be retrieved again and back up groups and custom settings stored only locally. If a subscription shows only some nodes on the new device, check its format, group, and supported protocols before letting an empty list overwrite your existing settings. See the client comparison guide for more platform differences.

  4. Open-source licenses and service access

    Open-source licenses explain how source code may be used, modified, and distributed, and what obligations apply to redistribution. Clients and cores are separate projects, and a core package may include other components. Check the license and notices included with each project rather than applying one core's license to an entire client. Open source does not include a remote service. Clients provide tools to import configurations, connect, and manage settings; available servers depend on the service you use or the configuration you create yourself.

    Subscription URLs are often tied to account access. If you post one in a public comment, screenshot, or shared note, others may be able to retrieve your configuration. Follow the service's guidance and keep the URL on a device you control. When asking for help, share your platform, client, proxy mode, steps to reproduce the issue, and redacted error messages. Do not post the full subscription URL or sharing code. Saying whether “the update failed” or “the update succeeded but the connection failed” is usually more useful than sharing an entire log.

  5. Update the app, subscriptions, and rule data separately

    Updating the client replaces the program; updating a subscription fetches the node list again; updating rule data may change the domains or addresses in a category. They are all called “updates,” but their effects differ. If the app fails immediately after an upgrade, first check whether the current core can read the existing configuration. If a subscription update removes a few nodes, check the relevant group and the content returned by the provider. If only one category of site starts using the wrong outbound, check the matched routing rule and the referenced category list.

    Avoid updating everything while troubleshooting. Keep a working configuration, note the node, traffic takeover mode, and test app you used before making changes, then change one thing at a time. After each update, test the same destination: did the app receive a response, do the logs show the expected outbound, and are local network connections still working? If something breaks, restore the last known-good state and follow the connection troubleshooting steps. If you only want to find the right everyday settings, check the basics first. There is no need to reinstall the app just to test one rule.

04 How-to Guides

V2Ray routing, TUN, and configuration guides

Choose a guide based on the issue: check routing when traffic takes the wrong outbound, traffic takeover when an app bypasses the proxy, or configuration structure when an exported file is unclear.

Routing rules

V2Ray Custom Routing Rules: domain, ip, geosite Syntax and Match Priority

Domain conditions match targets by name, address conditions match targets by network address, and geosite references a group of domains in a category list. This guide explains the syntax and match order, making it useful when a rule is in place but traffic still takes the wrong outbound. Use a test connection of your own as an example: identify the target, check the rule's position, then see where its outbound tag points.