How to Setup V2RayNG in 2026 โ Complete Step-by-Step Guide
V2RayNG is the most widely used Android client for V2Ray-based VPN connections. If you need a reliable, censorship-resistant connection in Russia, Iran, China, or anywhere with aggressive internet filtering, V2RayNG with a VLESS or VMess configuration is currently the most effective option available.
This guide covers everything: what V2RayNG is, how to install it, and three different methods for adding server configurations โ including how to connect to MegaV's free servers.
What Is V2RayNG and Why Use It
V2RayNG is an Android app that implements the V2Ray proxy framework. V2Ray was originally developed within China to bypass the Great Firewall, and it has been the most reliably censorship-resistant VPN technology available since around 2019.
Unlike traditional VPN apps that use WireGuard or OpenVPN (both of which have recognizable traffic fingerprints that DPI systems can detect and block), V2Ray traffic using VLESS or VMess protocols is designed to look like ordinary HTTPS web traffic. To a deep packet inspection (DPI) system โ whether Russia's TSPU, Iran's national filtering infrastructure, or China's Great Firewall โ a V2Ray connection is indistinguishable from a user browsing a normal website.
Why V2RayNG specifically:
- Free and open source
- Actively maintained
- Supports all major V2Ray protocols: VLESS, VMess, Trojan, Shadowsocks
- Supports subscription links (auto-updating server lists)
- Built-in ping testing and speed measurement
- Per-app routing (split tunneling)
- Available directly on GitHub โ no dependence on Google Play availability
The main trade-off compared to a dedicated VPN app like MegaV is that you need to manage your own server configurations. If a server goes down, you need to add a new one manually or refresh a subscription link. For users who want a fully managed experience, a dedicated app handles this automatically.
Step 1: Download V2RayNG
Android (Primary Platform)
V2RayNG is available in two places:
1. Google Play Store โ search for "v2rayNG" (developer: 2dust). This is the easiest installation path if Play Store is accessible.
2. GitHub Releases โ github.com/2dust/v2rayNG/releases โ download the latest .apk file directly. Required if Play Store is blocked or unavailable.
If installing from the GitHub APK, you will need to enable "Install from unknown sources" in your Android settings (Settings โ Security โ Unknown sources, or equivalent depending on your Android version).
Current stable version as of April 2026: 1.9.x
iOS Alternatives
V2RayNG does not have an iOS version. On iPhone and iPad, use one of these alternatives:
- Streisand โ free, open source, excellent V2Ray support
- Shadowrocket โ $2.99 one-time purchase, the most popular iOS V2Ray client, requires a non-Russian/non-Chinese App Store account
- Sing-Box โ free, open source, supports VLESS Reality (the most advanced configuration)
Desktop
- Windows/macOS/Linux: Use v2rayN (Windows), V2RayXS (macOS), or Nekoray (cross-platform)
- All are free, open source, and support the same configuration formats
Step 2: Interface Overview
When you first open V2RayNG, you will see:
- A main list โ currently empty, where your server configurations will appear
- A floating action button (+ button) at the bottom right to add new configurations
- A connect button โ the V icon at the top right that activates the VPN connection
- A settings gear at the top right
Before connecting, you need to add at least one server configuration. There are three methods.
Method 1: Add Configuration via QR Code
This is the fastest method when you have a QR code containing server details.
1. Tap the + button in the bottom right corner
2. Select "Scan QR code"
3. Point your camera at the QR code
4. The configuration is imported automatically โ you will see a new entry in the server list
5. Tap the entry to select it (a checkmark appears)
6. Tap the V icon at the top right to connect
7. Accept the VPN permission prompt when it appears
The device status bar will show a key icon when the VPN is active.
Where to get QR codes: Telegram channels that distribute free V2Ray configs, VPN providers who support V2Ray (including MegaV), and community forums typically share configs as QR codes.
Method 2: Add Configuration Manually
Use this when you have the server details as text rather than a QR code.
1. Tap the + button
2. Select "Type manually"
3. Choose the protocol type: VLESS or VMess
For a VLESS configuration, you will need:
| Field | Description |
|---|---|
| Remarks | A name for this server (e.g., "MegaV-Germany") |
| Address | The server IP address or hostname |
| Port | Usually 443 (HTTPS port) |
| ID | The UUID โ a long string like 550e8400-e29b-41d4-a716-446655440000 |
| Flow | For XTLS-Reality configs: xtls-rprx-vision |
| Encryption | none for VLESS |
| Network | tcp or ws depending on transport |
| TLS | tls or reality depending on config type |
For Reality configurations (the most censorship-resistant type), you also need:
| Field | Description |
|---|---|
| SNI | The domain being impersonated (e.g., www.microsoft.com) |
| Public Key | Server's x25519 public key |
| Short ID | A short hex identifier |
| Fingerprint | Browser fingerprint (usually chrome) |
4. Fill in all required fields
5. Tap the save icon (floppy disk) at the top right
6. Select the configuration and tap the V icon to connect
Method 3: Add Configuration via Subscription Link
Subscription links are the most convenient method for long-term use. A subscription URL points to a server list that updates automatically โ when servers change or new ones are added, your app fetches the latest list without any manual effort.
1. Tap the three-dot menu (โฎ) at the top right of the main screen
2. Select "Subscription group setting"
3. Tap the + button to add a new subscription
4. Enter:
- Remarks: A name (e.g., "MegaV Free Servers")
- URL: The subscription link URL provided by your VPN service
5. Tap OK to save
6. Back on the main screen, tap the three-dot menu again
7. Select "Update subscription"
8. Wait for the server list to download โ new entries will appear in your list
9. Select any entry and tap the V icon to connect
Tip: After importing via subscription, you can use the built-in ping test to find the fastest server:
- Long-press any server entry to see options
- Select "Real delay test" to test all servers at once
- Sort by delay to find the fastest option
Step 3: Connect and Verify
After selecting a configuration and tapping connect:
1. Android will ask you to confirm the VPN connection โ tap OK
2. The V icon at the top of the app turns green when connected
3. A key icon appears in your Android status bar
Verify your connection is working:
1. Open your browser and go to ipleak.net or whatismyip.com
2. Your IP address should now show as the VPN server's IP, not your real IP
3. Your location should show as the server's country (Germany, Finland, Netherlands, etc.)
If the IP has not changed, the VPN connection did not activate properly โ see troubleshooting below.
How to Connect to MegaV Free Servers
MegaV VPN provides free server access with no account required. To connect:
Option A โ Use the MegaV app (recommended for most users):
1. Download MegaV from megav.app/download
2. Open the app โ it connects automatically to the best available server
3. No configuration needed
The MegaV app does everything V2RayNG does, but automatically: it selects the optimal server, handles configuration updates, and switches servers if one goes down.
Option B โ Use V2RayNG with a MegaV subscription link:
1. Create a free account at megav.app
2. Go to account settings โ "V2Ray subscription"
3. Copy the subscription URL
4. Add it to V2RayNG using Method 3 above
This lets you use V2RayNG's interface while connecting to MegaV's server infrastructure.
Troubleshooting Common Issues
Connection drops frequently
Cause: The server may be throttled or the network is unstable.
Fix:
1. Run the real delay test (long-press a server โ "Real delay test")
2. Switch to a server with lower latency
3. If using WebSocket transport, try TCP transport instead
4. Enable "Mux" in the configuration settings if available
App shows "Connected" but websites still don't load
Cause: DNS leak or DNS not routing through VPN.
Fix:
1. Go to V2RayNG Settings โ "Domain strategy"
2. Set to IPIfNonMatch or IPOnDemand
3. Set "Predefined rules" to "Global" to route all traffic through VPN
4. Reconnect
Cannot import subscription โ "Parse failed"
Cause: The subscription URL may require authentication or be expired.
Fix:
1. Verify the URL opens correctly in a browser
2. Check if the URL has expired (some providers use time-limited subscription URLs)
3. Try re-generating the subscription URL from your provider account
VPN icon appears but real IP is still showing
Cause: Split tunneling rules or browser WebRTC leaks.
Fix:
1. In V2RayNG, go to Settings โ "Per-app proxy"
2. Switch from per-app mode to "All apps" mode
3. In your browser, disable WebRTC or use a browser extension to block WebRTC leaks
"Permission denied" when connecting
Cause: Android battery optimization is killing the VPN service.
Fix:
1. Go to Android Settings โ Battery โ Battery optimization
2. Find V2RayNG in the list
3. Set to "Don't optimize"
4. Also check: Settings โ Apps โ V2RayNG โ Permissions โ ensure all permissions are granted
Config was working but suddenly stopped
Cause: The server's IP address may have been blocked by your ISP.
Fix:
1. Update your subscription (โฎ โ "Update subscription") to get fresh server IPs
2. Try a different server from the same subscription
3. If all servers in a subscription are blocked, the provider may have been blocked entirely โ time to switch providers or use a subscription with VLESS Reality configs, which are harder to block by IP
V2RayNG vs MegaV App โ Which Should You Use?
| | V2RayNG | MegaV App |
|-|---------|-----------|
| Setup time | 10โ30 minutes | Under 2 minutes |
| Server management | Manual / subscription | Automatic |
| Server switching | Manual | Automatic |
| When server gets blocked | Update subscription manually | Automatic |
| Technical knowledge needed | Moderate | None |
| Cost | Free (need server source) | Free trial, then paid |
| Best for | Advanced users who want control | Anyone who wants it to just work |
V2RayNG is an excellent tool if you enjoy the technical side and want full control over your configuration. But for most users, the learning curve and ongoing maintenance are not worth it โ a dedicated app that handles everything automatically is the practical choice.
Conclusion
V2RayNG remains one of the most powerful tools for circumventing internet censorship on Android. With a VLESS Reality configuration pointing to a quality server, it can bypass even the most aggressive DPI systems in Russia, Iran, China, and elsewhere.
The setup process takes about 15โ30 minutes if you are doing it for the first time. Once configured with a subscription link, maintenance is minimal โ just refresh the subscription occasionally to get updated server addresses.
If you want the same VLESS Reality technology without the setup work, download MegaV โ it uses the same protocol stack but handles everything automatically, including server selection, updates, and failover.