· Advanced Setup · About 8 min

How to Enable LAN Access in v2rayN: Share Your Proxy with Phones, TVs, and Other PCs

Learn how enabling LAN access changes the listening address, how to configure the port and Windows Firewall, and how to set up a proxy on other devices, with key security tips for sharing.

At a glance

If a Windows PC can already access websites through v2rayN, you can manually configure a phone, TV, or another PC on the same trusted network to use its proxy. You’ll need three details: the host’s LAN IPv4 address, the listening port, and a proxy type supported by the device. This guide uses 192.168.1.23:10808 as an example and walks you through troubleshooting connection failures and apps that bypass the proxy.

What changes when you enable LAN access?

When access is limited to the local machine, the proxy usually listens on 127.0.0.1. This address always refers to the device making the connection: if you enter 127.0.0.1 on a phone, it points to the phone’s own proxy, not the PC. With LAN access enabled, the shared proxy can listen on 0.0.0.0 or another non-loopback address. 0.0.0.0 means listening on all IPv4 interfaces; it is not the address clients should enter. Clients need the PC’s actual address on the current network.

Device appLAN connectionHost proxy inboundHost routing rulesOutbound route

You’re sharing the proxy inbound, not the PC’s entire network connection or a remote node. Other devices don’t need to import the host’s subscription, and they should not use a node server’s address and port. After an app sends a request to the host, the host routes it directly or through a proxy according to its current rules. The “Set system proxy” option in the Windows system tray affects apps on the host that follow system settings; it does not control whether other devices can connect.

Enable sharing in v2rayN and confirm the port

  1. First, make sure the proxy works on the host. Run v2rayN on the Windows PC, select the node you want to use, and open a familiar website in a browser configured to use the proxy. Don’t change firewall settings until the proxy works on the host itself.
  2. Enable LAN access. In v2rayN 7.x, go to “Settings” → “Parameter Settings,” then enable “Allow connections from the LAN” under Basic Settings. The categories and wording may vary slightly between minor releases. After saving, confirm the core has loaded the new configuration. If the listening address hasn’t changed, restart v2rayN and check again.
  3. Note the proxy port available to other devices. This guide uses 10808, a mixed port that supports HTTP and SOCKS5. If the app has a separate LAN port enabled, or HTTP and SOCKS inbound ports are configured separately, use the port that matches the device’s supported proxy type. Don’t assume the example port applies to your setup.
  4. Find the host’s LAN address. Run ipconfig in PowerShell and look for the “IPv4 Address” under the Wi-Fi or Ethernet adapter connected to your home network. The example address is 192.168.1.23. Don’t use the “Default Gateway” or an address assigned to a TUN or other virtual adapter.
Get-NetTCPConnection -State Listen -LocalPort 10808 |
  Select-Object LocalAddress, LocalPort, OwningProcess

Replace 10808 in the command with the actual shared port. IPv4 clients can connect only if the listener is bound to 0.0.0.0 or the host’s LAN IPv4 address. If the only result is 127.0.0.1, check the LAN access setting and port before changing the firewall. If another program is using the port, look up the process listed under OwningProcess in Task Manager, then resolve the port conflict.

Allow only the required devices and port through Windows Firewall

  1. In Windows, open “Settings” → “Network & Internet,” select the current connection, and check its network profile. Use the “Private” profile only on a home network you trust.
  2. Press Win + R, enter wf.msc, and open “Windows Defender Firewall with Advanced Security.” Select “Inbound Rules” → “New Rule” → “Port,” choose TCP, then enter the shared port, such as 10808, under “Specific local ports.”
  3. Choose “Allow the connection” and select only “Private” for the profiles. Name the rule “v2rayN Home Proxy 10808.” When it’s created, open its properties and restrict the remote IP addresses under “Scope” to the devices that need access, such as 192.168.1.41. To share with multiple devices at home, set a range for your actual subnet, such as 192.168.1.0/24, which applies only to that subnet.
  4. If you previously allowed the core through a Windows Firewall prompt, check for broader allow rules covering the same inbound connection. Adding a narrow rule does not automatically restrict existing rules. When you’re done, turn off LAN access in v2rayN and disable the inbound rule created for sharing.

This TCP rule is for the manual HTTP proxy setup described here; you don’t need to open UDP or other ports. If the router may assign a different address to a device, reserve an address for frequently used devices in the router, then restrict the rule to each device where possible.

How to configure a manual proxy on a phone, TV, or another PC

Android phone or TV with manual proxy support

Where to find the setting
Network details or advanced settings for the current Wi-Fi network
Proxy mode
Manual
Proxy hostname
192.168.1.23
Proxy port
10808; must support HTTP proxy

Enter only the address in the hostname field. Don’t add a protocol prefix or append the port.

Another Windows PC

Where to find the setting
“Settings” → “Network & Internet” → “Proxy”
Proxy mode
“Manual proxy setup” → “Use a proxy server”
Proxy IP address
192.168.1.23
Port
10808; must support HTTP proxy

Note your original proxy settings before saving, and restore them when you’re finished.

On Android, proxy settings are usually available from the current Wi-Fi network’s edit screen; some models require expanding “Advanced options” first. TV menus vary by model. If there’s no proxy option in the network settings or app, connecting to the same Wi-Fi won’t automatically route traffic through the host proxy. If an app specifically requires SOCKS5, select SOCKS5 in that app and enter the matching inbound port. Don’t enter a SOCKS5-only port in the system’s HTTP proxy field.

Bottom line: test in a browser, then check the app

If browser requests show up in the host’s proxy logs but requests from a TV app don’t, first check whether the app follows system proxy settings. Broadening the firewall rule won’t make an app that ignores those settings use the proxy.

Can’t connect to the LAN proxy? Check TCP first, then HTTP

Run these two commands on another Windows PC. The first checks whether it can establish a TCP connection to the remote port. The second explicitly uses an HTTP proxy, regardless of that PC’s system proxy settings. Use the address and port configured on the host.

Test-NetConnection -ComputerName 192.168.1.23 -Port 10808
curl.exe --proxy http://192.168.1.23:10808 --head --max-time 10 https://example.com/

Same Wi-Fi, but why does the port test still return False?

If you see TcpTestSucceeded : False, first verify the host’s current IPv4 address and listening address, then check the firewall profile, remote address range, and client subnet. Guest networks and wireless access point isolation can also block communication between devices. Seeing the same Wi-Fi network name on both devices doesn’t guarantee they can reach each other.

TCP is True, so why is curl still failing?

This confirms only that a connection to the port can be established; it doesn’t mean the port accepts HTTP proxy requests. Check that the port is configured for HTTP or mixed inbound traffic, then look in the host logs for the request and check whether routing rules block it or the outbound connection fails. If the terminal has NO_PROXY set, make sure the test domain isn’t on the bypass list.

It worked yesterday. Why can’t my device connect today?

First make sure the host isn’t asleep and v2rayN is still running, then run ipconfig again. The router may have assigned the host a new address, making the saved address on other devices outdated. If the firewall rule is limited to a specific device, check whether that device’s address has changed too.

Why can’t my phone open websites after I close v2rayN?

The phone is still trying to connect through the now-closed proxy. Open the details for that Wi-Fi network, set the proxy to “None,” and save. On another PC, turn off the manual proxy you enabled for sharing or restore the previous settings. When switching the phone to another Wi-Fi network, don’t assume it will use the same proxy settings.

Download v2rayN