If v2rayN is turned on on my home computer, can mobile phones, tablets, and TV boxes under the same WiFi also use this agent without having to install the client on each one? Can. Just turn on a switch and fill in the computer's IP and port on other devices.
1Principle
v2rayN only allows by default local machine (127.0.0.1) to its proxy port. When "Allow connections from LAN" is turned on, it will listen 0.0.0.0, other devices in the same LAN can pass Computer's LAN IP + port Connect here and use this computer as a proxy gateway.
2Step 1: Turn on the switch on v2rayN
- Menu "Parameter Settings" → Found in Basic Settings "Allow connections from LAN", hook it up.
- After confirmation, "restart the service" to make it take effect.
This opens the proxy to the LAN: There is no problem in your own home WiFi; but you should be cautious in companies, dormitories, and public networks, as people on the same network segment may connect to your proxy, siphoning traffic and even posing security risks. Remember to turn off this switch after use.
3Step 2: Check the computer's LAN IP
Open the command prompt on your computer and enter ipconfig, find the "IPv4 address" of the current network card, usually 192.168.x.x Like this. Write it down, for example 192.168.1.100.
4Step 3: Fill in the proxy on mobile phones and other devices
Take a mobile phone together with a WiFi as an example:
- Enter the WiFi settings of your phone, long press the currently connected WiFi → "Modify Network/Configure Proxy".
- Select "Manual" for the proxy, and fill in the computer IP for the host name (
192.168.1.100), the port is filled in with v2rayN HTTP port 10809. - Save. Try to open the external network in the mobile browser, and it will be successful if you can.
The same goes for TV boxes, tablets, and another computer. Just point the proxy to "Computer IP: 10809". Note that mobile WiFi proxies are generally used HTTP port (10809), some applications support SOCKS and can be filled in 10808.
If you can't connect, check these points first: ① Whether the two devices are in the same WiFi/network segment; ② Whether the computer firewall blocks v2rayN (the firewall may pop up to ask for permission for the first time); ③ Whether the IP is filled in correctly (the computer IP may change, set it to a fixed IP in the router if necessary); ④ Whether the v2rayN switch is really turned on and the service has been restarted.
If you just want your phone to use the agent alone without relying on the computer to always be on, you can install it directly on your phone. v2rayNG It is easier to use the same subscription; LAN sharing is more suitable for "devices such as TV boxes that are inconvenient to install clients."