Are you an LLM? You can read better optimized documentation at /en\wiki\V2Ray.md for this page in Markdown format
What is V2Ray?
V2Ray is the core tool of Project V. Think of it as a highly customisable network pipeline: you decide where data enters, what encryption or camouflage it goes through, and where it leaves.
Core strengths
- Many protocols: VMess (its own protocol), VLESS, Shadowsocks, SOCKS, HTTP, Trojan and more.
- Powerful routing: decide by domain, IP or destination port whether traffic goes direct, through a proxy, or is blocked outright.
- Strong camouflage: traffic can be disguised as ordinary HTTPS (WebSocket + TLS / gRPC), which makes it very hard for firewalls to identify.
- Cross-platform: Windows, macOS, Linux, Android, iOS and various router firmwares.
How it works: inbound and outbound
V2Ray's logic is built around inbound and outbound:
- Inbound — accepts requests coming from a client, such as a browser.
- Routing — applies your rules to decide where the request should go.
- Outbound — sends the request to its destination, either a website or a proxy server.
V2Ray versus Shadowsocks
Both are widely used for circumvention, but they are fundamentally different:
| Aspect | Shadowsocks (SS) | V2Ray |
|---|---|---|
| Role | A single lightweight proxy protocol | A full proxy platform |
| Flexibility | Limited, aimed at simple circumvention | Very high, supports chained relays and complex routing |
| Camouflage | Weak, easily spotted by deep packet inspection (DPI) | Strong, can look like ordinary web traffic |
| Difficulty | Simple, quick to learn | Complex, requires JSON configuration files |
Common protocols and transports
- VMess: V2Ray's original protocol; it adds timestamp verification and is quite secure.
- VLESS: a newer lightweight protocol that does not depend on clock synchronisation, performs better and is commonly paired with XTLS.
- mKCP: a UDP-based transport for poor networks, at the cost of higher bandwidth usage.
- WebSocket + TLS: the most common camouflage today; behind Nginx the traffic looks like ordinary web browsing.
How do I use it?
V2Ray's native JSON configuration is not friendly to most people, so a graphical client is recommended:
- Windows: V2RayN
- macOS: V2RayU / Clash Verge
- Android: V2RayNG
- iOS: Shadowrocket / Quantumult X
Note: V2Ray is only a tool. You still need your own server (VPS) with the server side deployed, or a subscription from a third-party provider.
