Article Overview

After enabling 'Allow LAN connections' in v2rayN, the inbound listening address changes from 127.0.0.1 to 0.0.0.0, allowing phones, tablets, and TVs on the same Wi-Fi to share the proxy via your PC's IP and port. The core steps are: check the option → allow it through the firewall → enter the IP and port on your device.

Enable 'Allow LAN connections'

In v2rayN, go to 'Settings' → 'Parameter Settings' → 'Allow LAN connections' and check the option. Once enabled, v2rayN's inbound listening address changes from 127.0.0.1 to 0.0.0.0, allowing other devices on the LAN to connect.

Open Parameter Settings

In the v2rayN main window, click 'Settings' → 'Parameter Settings' and find 'Allow LAN connections'.

Check and save

After checking the option and clicking 'OK', v2rayN restarts its inbound listener and the address becomes 0.0.0.0.

Confirm the port

In 'Parameter Settings' → 'Local Listening', confirm the SOCKS port (default 10808) and HTTP port (default 10809).

Allow through firewall

Allow inbound TCP connections on ports 10808 and 10809 in Windows Firewall, otherwise other devices won't be able to connect.

Why 0.0.0.0

127.0.0.1 only allows local access, while 0.0.0.0 means listening on all network interfaces. After changing to 0.0.0.0, any device on the same LAN can try to connect to your proxy port, which is why it's recommended to use this feature only on trusted networks. When you first enable it, Windows will show a firewall prompt; click 'Allow access'. If you missed it, you can add a firewall rule manually.

Find your PC's LAN IP

On Windows, open Command Prompt and run ipconfig, then look for the 'IPv4 Address'. This is your PC's LAN IP, for example 192.168.1.100. On macOS, you can find it under 'System Preferences' → 'Network' → 'Advanced' → 'TCP/IP'.

Note: Use the LAN IP, not the public IP

Other devices on your LAN need to use this IP address and v2rayN's inbound port (default 10808) to configure the proxy. Use your PC's LAN IP, not its public IP—if you enter the public IP, other devices won't be able to connect. Also, your PC's IP may change when the DHCP lease expires, so it's a good idea to assign a static IP to your PC in the router.

Configure the proxy on other devices

Phones or TVs need to connect to the same Wi-Fi network as your PC. In the device's Wi-Fi settings, find the 'Proxy' option, select 'Manual', and enter your PC's IP address and port number. The port depends on v2rayN's inbound settings: the SOCKS port defaults to 10808 and the HTTP port to 10809.

Android phone

Go to 'Settings' → 'Wi-Fi' → long-press the current network → 'Modify network' → 'Advanced options' → 'Proxy' → 'Manual', then enter your PC's IP and port.

TV box

In 'Network settings' → 'Proxy', select 'Manual' and enter your PC's IP and SOCKS port. Some boxes only support HTTP proxy; in that case, enter the HTTP port.

Other devices

No matter where the setting is, the key is to enter your PC's IP and port, and make sure the device is on the same Wi-Fi as your PC.

SOCKS proxy

Recommended

Supports more protocols; browsers, apps, and games can all use it. Suitable for most scenarios.

Use cases: browsers + apps + games

HTTP proxy

Only supports HTTP/HTTPS traffic; some apps only accept HTTP proxy.

Use cases: HTTP/HTTPS apps only

Allow through firewall

Windows

In 'Firewall & network protection' → 'Advanced settings' → 'Inbound rules', add a new rule to allow inbound TCP connections on ports 10808 and 10809.

macOS

In 'System Preferences' → 'Security & Privacy' → 'Firewall' → 'Firewall Options', make sure v2rayN's inbound connections are not blocked.

Common reasons why devices can't connect

Devices are not on the same network

Run ipconfig on your PC and check whether the IPv4 address is in the same subnet as the one your phone got (for example, both 192.168.1.x). If your PC is 192.168.1.100 and your phone is 192.168.0.5, they're not in the same subnet, and your router may have guest network isolation enabled.

Incorrect port configuration

The SOCKS port and HTTP port are different. When selecting 'SOCKS5' proxy on a device, enter 10808; when selecting 'HTTP' proxy, enter 10809. Using the wrong protocol type will also prevent a connection.

Firewall blocking

If turning off the firewall temporarily allows a connection, the issue is the firewall rules. In that case, add an allow rule instead of leaving the firewall disabled.

How to verify the sharing is working

Verify on your PC

In your PC's browser, visit a site that shows your IP (such as ip.sb) and confirm the outgoing IP has changed to the proxy server's IP.

Verify on your device

Connect your phone to the same Wi-Fi, enter your PC's IP and port, then visit the same site. If the displayed IP matches your PC's, the sharing is working.

Speed troubleshooting

If your phone can open web pages but is slow, check your PC's CPU usage and network bandwidth. When sharing a proxy over LAN, all device traffic is forwarded through your PC.

Tip: Assign a static LAN IP to your PC

Your PC's IP may change when the DHCP lease expires. It's recommended to bind a static IP for your PC in the router, or manually assign an IP in your PC's network settings, so you don't have to keep updating the proxy config on other devices.

Security note

After enabling LAN sharing, any device on the same network can try to connect to your proxy. It's recommended to use this only on trusted home or office networks. Turn off this option on public Wi-Fi to prevent others from abusing your proxy.

Phone can access the internet, but mainland China sites are slow?

This is the routing rules at work. The default rules bypass mainland China traffic, so when your phone uses the proxy, traffic to mainland China still goes direct, and the speed depends on your network environment.

How do I set up the proxy on a TV box?

In the TV box's network settings, find 'Proxy', select 'Manual', and enter your PC's IP and SOCKS port. Some boxes only support HTTP proxy; in that case, enter the HTTP port.