Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
VPS and Hosting

How to Use V2Ray on Windows: v2rayN Setup and Config Guide

How to use V2Ray on Windows with v2rayN guide by 99RDP

V2Ray is a proxy platform that supports protocols such as VMess, VLESS, Trojan and Shadowsocks. On Windows, nobody runs the bare V2Ray core by hand any more: you use a graphical client, and the most popular one is v2rayN. This guide shows how to download v2rayN, import a V2Ray config or subscription, switch on the system proxy, check that it works, and set up your own V2Ray server on a VPS.

Quick answer

  1. Download the latest v2rayN-windows-64 ZIP from the official 2dust/v2rayN GitHub releases and extract it.
  2. Run v2rayN.exe, then import your server: copy a vmess://, vless:// or trojan:// link and use Servers → Import share links from clipboard, or add a subscription URL.
  3. Select the server and set the system proxy from the tray icon. Check your IP in a browser.
Diagram of V2Ray on Windows: apps use the v2rayN system proxy, which sends traffic to the V2Ray server
How v2rayN works

What you need

  • Windows 10, 11 or Windows Server (64-bit).
  • A V2Ray server: either a subscription link or share link from your provider, or your own server (see the last section).
  • Use V2Ray in line with the laws of your country and your network's rules.

Step 1: Download v2rayN

Download only from the developer's GitHub releases page. Unofficial "v2ray for PC" download sites often bundle adware or outdated builds.

  • v2rayN-windows-64-SelfContained.zip: includes the .NET runtime, the easiest choice.
  • v2rayN-windows-64.zip: smaller, but needs the .NET Desktop Runtime installed.
  • v2rayN-windows-arm64.zip: for ARM devices.

v2rayN supports the Xray and sing-box cores, which handle all common V2Ray protocols. The old v2ray/v2ray-core repository linked by many outdated guides is no longer maintained; the community continues it as V2Fly.

Steps to set up v2rayN on Windows: download the release, extract, import a share link, set the system proxy, test
Setting up v2rayN

Step 2: Extract and start v2rayN

The ZIP is a portable app. Extract it to a folder such as C:\v2rayN (not inside Program Files, because v2rayN saves its settings in its own folder), then run v2rayN.exe. If Windows SmartScreen warns you, choose More info → Run anyway after confirming you downloaded it from GitHub.

Step 3: Add your V2Ray config

From a share link

Copy the link (vmess://…, vless://…, trojan://… or ss://…), then in v2rayN choose Servers → Import share links from clipboard. You can also scan a QR code from the screen.

From a subscription URL

Open Subscription group → Subscription group setting → Add, paste the URL, save, then choose Update subscription. All servers from the subscription appear in the list and refresh automatically.

Manually

Choose Servers → Add [VMess] (or VLESS, Trojan and so on) and fill in the address, port, UUID or password, transport (TCP, WebSocket, gRPC) and TLS settings exactly as your provider gave them.

Step 4: Connect and set the system proxy

  1. Select a server and press Enter (or right-click → Set as active server).
  2. Run a real-delay test on the servers and pick a fast one.
  3. Right-click the v2rayN tray icon and choose System proxy → Set system proxy.

Chrome, Edge and most Windows apps now use the proxy. Choose a routing mode in v2rayN (for example bypass LAN and local sites) if you only want some traffic to go through the proxy.

Step 5: Browsers and apps that ignore the system proxy

  • Firefox: Settings → Network Settings → Use system proxy settings, or enter a manual SOCKS5 proxy of 127.0.0.1 and the local port shown in v2rayN's status bar. Tick Proxy DNS when using SOCKS v5.
  • Games and command-line tools: enable TUN mode in v2rayN (run v2rayN as administrator). TUN mode routes all traffic through a virtual network adapter.
v2rayN system proxy modes: clear, set system proxy, do not change
System proxy modes

Step 6: Check that it works

Open an IP-check site in your browser. It should show your V2Ray server's IP and location, not your own. If pages don't load, check the server's address, port, UUID and TLS settings, make sure your PC's clock is correct (VMess fails if the time is off by more than about a minute), and look at the log panel in v2rayN.

Run your own V2Ray server on a VPS

A private server gives you a dedicated IP and full control. On a Linux VPS (Ubuntu or Debian), the V2Fly project's install script sets up the core as a system service:

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
sudo nano /usr/local/etc/v2ray/config.json
sudo systemctl enable --now v2ray

Add an inbound (for example VLESS or VMess over WebSocket with TLS behind a domain), open the port in the firewall, and import the matching settings into v2rayN as in Step 3.

Frequently asked questions

What is the best V2Ray client for Windows?

v2rayN by 2dust is the most widely used. It's free, open source, portable, and supports VMess, VLESS, Trojan, Shadowsocks and more through the Xray and sing-box cores.

Where do I get a V2Ray config for Windows?

From your V2Ray provider as a share link or subscription URL, or by setting up your own server on a VPS and creating the config yourself. Avoid free public configs: you don't know who runs them or what they log.

Is v2rayN the same as v2rayNG?

No. v2rayN is the desktop client (Windows, Linux, macOS). v2rayNG is the Android app from the same developer. Both import the same share links.

Why does v2rayN connect but no websites load?

The most common causes are a wrong UUID or TLS setting, a blocked server port, or your PC's clock being out of sync. Check the v2rayN log for the exact error.

Nishant Kumar, Sr. Server Engineer at 99RDP
Written byNishant KumarSr. Server Engineer, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More VPS and Hosting guides

All VPS and Hosting guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services