· Advanced Setup · About 8 min read

v2rayN Allow LAN Connections: Share Your PC Proxy with Phones and TVs

Learn where to enable LAN access in v2rayN, how to find your PC’s LAN IP and proxy ports, configure Windows Firewall, and connect other devices.

At a glance

If v2rayN is already working on your Windows PC, you can share its proxy with phones and TVs on the same home network. Check the listening address, port, and firewall rules, then enter your PC’s LAN address on each device. There’s no need to enable TUN on the PC or set up port forwarding on your router.

Enable LAN Listening in v2rayN

Device appLAN connectionPC proxy endpointRouting rulesSelected outbound

“Allow connections from the LAN” controls whether other devices can connect to your PC’s proxy endpoint. “Automatically configure system proxy” controls how apps on the PC that follow system settings send requests. These options work independently. Once a phone connects, its requests still follow the PC’s routing rules, which determine whether traffic goes direct or through a proxy outbound. Not every request is guaranteed to use the currently selected node.

  1. First, select an available node on the PC and use an app configured to use the proxy to confirm that websites load. If the PC itself can’t access the web through the proxy, troubleshoot the node or outbound connection first.
  2. In the standard Windows desktop interface, open Settings → Preferences, then find and enable “Allow connections from the LAN” under “Core: Basic Settings” or the inbound settings. Some versions also offer “Enable a separate port for LAN.” If enabled, check the dedicated LAN inbound port rather than reusing the PC’s local port.
  3. After saving, check the port details on the main screen. If the listening address hasn’t changed, exit and reopen v2rayN, then check the core log for address binding failures or port conflicts. Closing the main window may only minimize the app to the system tray; it doesn’t necessarily exit.

Find Your PC’s IPv4 Address and Proxy Port

In Windows Terminal, run ipconfig. Find the Wi-Fi or Ethernet adapter currently connected to your home router and note its “IPv4 Address.” It’s fine to connect the PC by Ethernet and the phone by Wi-Fi, as long as they can reach each other. Don’t use the default gateway or a virtual adapter address. 127.0.0.1 points to the device it’s entered on, not your PC.

192.168.1.23
Example PC LAN IPv4 address
10808
Example mixed or SOCKS inbound port
10809
Example dedicated HTTP inbound port

These numbers are examples only. A “mixed port” accepts both HTTP and SOCKS requests on the same endpoint. If the interface lists separate HTTP and SOCKS ports, use the one that matches the device’s proxy protocol. If you enable a separate LAN port, use the port shown in the client settings and confirmed as listening—don’t guess based on these examples.

For example, if the actual LAN port is 10808, use PowerShell to check whether it’s listening for TCP connections:

Get-NetTCPConnection -State Listen -LocalPort 10808 |
  Select-Object LocalAddress, LocalPort, OwningProcess

If you see only 127.0.0.1 or ::1, the listener is restricted to the local PC. A listener on 0.0.0.0 or your PC’s LAN IPv4 address indicates an IPv4 listener is available. Whether other devices can connect also depends on firewall and network isolation settings.

Choose a protocol that matches the device’s settings

If your phone’s Wi-Fi settings provide only “Proxy hostname” and “Proxy port,” start with an HTTP or mixed endpoint. Choose SOCKS5 only if the app explicitly offers that option. Changing the port without selecting the matching protocol won’t fix the connection.

Allow Incoming Connections Through Windows Firewall

First, open the properties for your current connection under Windows Settings → Network & Internet. Use the “Private network” profile only for a trusted home network you manage. Don’t turn off the firewall to share a proxy, and don’t apply the same rule to public networks.

  1. Press Win + R, enter wf.msc, and open Windows Defender Firewall with Advanced Security. Select “Inbound Rules” → “New Rule” → “Port.”
  2. Select “TCP” and enter the LAN inbound port your devices will use under “Specific local ports,” for example, 10808. Choose “Allow the connection,” select only “Private” for the network profile, and give the rule a name you can identify and remove later, such as “Home proxy TCP 10808.”
  3. Open the new rule’s Properties → Scope and add the phone and TV addresses under “Remote IP address.” If device addresses change often, reserve DHCP addresses for them on your router, then keep the allowlist up to date.
  4. Check for existing, broader allow rules for the core program or port. Adding a narrowly scoped rule won’t automatically restrict older rules. If an existing rule allows other sources to access the endpoint, review its purpose before changing it.

Set Up a Proxy on an Android Phone or TV

On most Android phones, open Settings → Network & internet → Internet, edit the current Wi-Fi network, then set “Proxy” to “Manual” under “Advanced options.” Depending on the manufacturer, these settings may be under network details or “Modify network” after you press and hold the network. If your TV supports proxies, look in the advanced settings for its current network. Some models offer proxy settings only for certain connection types or individual apps.

Manual HTTP proxy for Wi-Fi

Proxy mode
Manual
Proxy hostname
192.168.1.23
Proxy port
10808 (example mixed port)

Enter only the address as the hostname—don’t add a protocol prefix. For a dedicated HTTP inbound, enter its port instead.

SOCKS5 proxy in an app

Proxy type
SOCKS5
Server
192.168.1.23
Port
10808 (example mixed port)

This affects only that app. For a dedicated SOCKS inbound, enter its port instead.

After saving, open a webpage in the device’s browser and check the core log on your PC for the corresponding request. If needed, check whether access logging is enabled in the client. A Wi-Fi proxy is not a full-device tunnel: some TV apps ignore system proxy settings, and media streams may use a different route from sign-in requests. Once the browser test works, check the app you actually want to use.

Troubleshoot Connection Problems

Why does it time out even though my phone and PC are on the same Wi-Fi?

First, make sure you copied the correct PC IPv4 address and that the phone isn’t connected to a guest network. Router AP isolation can let both devices access the internet while blocking them from reaching each other. Test with your own devices on a trusted main network, and make sure the firewall rule’s remote IP scope still includes the phone’s current address.

Why won’t websites load even though the port connects?

Check whether the phone is using an HTTP proxy or SOCKS5 in an app, then compare that with the PC’s inbound type. If the log shows requests from the device but outbound connections are failing, test the same URL on the PC and check the selected node and routing rules. Adding more firewall rules won’t fix an outbound connection problem.

Why does the TV browser work, but the video app still behaves the same?

Check the PC for matching requests while the video app is running. If only the browser appears in the log, there’s no evidence that the video app is using this endpoint. First, check whether the app has its own proxy settings. If it doesn’t, changing the PC’s system proxy or switching ports won’t make the TV app use the proxy.

Why did it work yesterday but stop today?

Make sure the PC hasn’t gone to sleep and the client is still running. Then use ipconfig to see whether the address changed after reconnecting to the network. If the PC’s address changed, update the proxy hostname on the devices; if the phone’s address changed, check the firewall scope. For long-term sharing, you can also reserve a DHCP address for the PC.

Client Download and Setup

Install v2rayN on your PC and confirm the node works before enabling LAN sharing.

Go to Downloads View the guide
Download v2rayN and Choose a Platform