Advanced 8 min read

Clash Mixed Port and LAN Access: Share Your PC Proxy with Phones and TVs

Learn how mixed-port, allow-lan, and bind-address work together. Set up a phone or TV with your PC’s LAN IP and port, then configure firewall access safely.

Mixed Port, LAN Access, and Bind Address

Run a Clash client on your PC and enable LAN access. Then point your phone or TV’s HTTP proxy to your PC’s LAN address. For example, if the PC’s address is 192.168.1.23 and the mixed port is 7890, enter those values on the device. The PC must stay online with the client core running. You don’t need to enable TUN on the PC or make it the phone’s or TV’s default gateway.

FieldExample valueWhat it does
mixed-port7890Accepts HTTP and SOCKS proxy connections on the same port. If the device’s proxy menu only offers HTTP, select HTTP.
allow-lantrueAllows devices on your LAN to connect to the proxy. Setting a mixed port alone does not enable LAN access.
bind-address"192.168.1.23"When LAN access is enabled, limits the listening interface to a specific address on the PC. This does not filter incoming connections; use a firewall to control which devices can connect.

Don’t enter 127.0.0.1 on your phone or TV: that address points back to the device itself. Also, don’t use the external-controller port. It’s for the control interface, not proxy traffic.

Configure the PC: Find Its IP and Update the Active Settings

  1. Find the IPv4 address of the active network adapter. On Windows, run ipconfig in a terminal and check the IPv4 address under the active “Wireless LAN adapter WLAN” or “Ethernet adapter.” On macOS, go to “System Settings” → “Network” → your current connection → “Details” → “TCP/IP.” Use the address of the adapter connected to your home network—not the default gateway, a virtual adapter, or a public IP address.
  2. Find the LAN access toggle and port. For example, in Clash Verge Rev, look under “Settings” → “Clash Settings” for “Allow LAN” and the port settings. Menu names may vary by version. Note the current mixed port; there’s no need to change it to 7890. If the interface has no bind-address option, use the client’s override feature to set it on a Mihomo core that supports the field.
  3. Verify the active settings. Save, then reload the configuration as prompted by the client. Restart the core if needed, and check the bind address and port. Prefer the client’s global settings or override feature. Direct edits to subscription-generated YAML may be overwritten on the next update. All three fields below are top-level fields; don’t indent them under tun, dns, or proxies.
config.yaml · LAN proxy fields
mixed-port: 7890
allow-lan: true
bind-address: "192.168.1.23"

Firewall: Allow Proxy Traffic Only on Your Home Network

Connect your phone and TV to a home network where they can reach the PC. The PC can use Ethernet while the phone uses Wi-Fi, as long as the router allows them to communicate. Guest Wi-Fi and networks with AP isolation may block device-to-device traffic. Even if the network names match, that alone doesn’t guarantee the devices can reach each other.

Windows: Limit the TCP Port and Source Addresses

Make sure you’re on a trusted home network and Windows identifies it as “Private.” Open “Windows Defender Firewall with Advanced Security” → “Inbound Rules” → “New Rule,” select “Port,” choose TCP, and enter the actual local port, such as 7890. Select “Allow the connection” and check only the “Private” profile. After creating the rule, open its properties and narrow the “Remote IP address” range under “Scope” to your phone and TV’s addresses, such as 192.168.1.45 and 192.168.1.62. Also check for existing, broader allow rules for the client; adding a narrow rule won’t override a broader one.

macOS: Check Which Apps Can Accept Incoming Connections

Open “System Settings” → “Network” → “Firewall” → “Options” and check whether the client or core that provides the listener is blocked from accepting incoming connections. The built-in macOS application firewall controls access by app; it doesn’t allow traffic by port and phone IP address. To restrict access by source, use a firewall policy that supports source-address filtering. You don’t need to set up port forwarding on your router for the mixed port, and you should not expose the control port.

Phones and TVs: Enter the HTTP Proxy Address and Port

If the host and port have separate fields, enter only the IP address in the host field—don’t add http:// or :7890. The system Wi-Fi proxy usually applies only to the current network, and only apps that honor the setting will use it. A browser can use an HTTP proxy with CONNECT for HTTPS, but UDP traffic, apps that ignore the system proxy, and device DNS queries won’t all be routed through the PC. If a TV browser works, that doesn’t mean the TV’s streaming apps are using the proxy too.

Test the Connection: Check the Port, Then Review Logs and Rules

  1. Check whether the PC is listening. In Windows PowerShell, run Get-NetTCPConnection -LocalPort 7890 -State Listen. If the only result is 127.0.0.1, your phone can’t connect using the PC’s LAN address. If there’s no result, check that the core is running, confirm the active port, and review the configuration load logs. If the port is already in use, choose an available port and update the device and firewall settings to match.
  2. Send a direct proxy request from another device on the LAN. If you have a device with curl installed, use the command below. In Windows PowerShell, replace curl with curl.exe. This example is for a test setup without proxy authentication.
curl --noproxy "" --connect-timeout 5 --max-time 15 -v -x http://192.168.1.23:7890 https://example.com/

Keep Sharing Secure, and How to Turn It Off

For long-term use, reserve the PC’s address in your router’s DHCP settings. If the firewall allows connections by device IP, reserve addresses for your phone and TV too. If your phone uses a private or randomized Wi-Fi address, use the address the router currently sees for that device on your home network. After the PC changes networks, goes to sleep, or exits the client, devices still configured to use a manual proxy may not be able to load webpages.

Share only on trusted networks. A standard HTTP proxy does not add encryption between the device and the PC, and proxy authentication is no substitute for network isolation or source restrictions. To stop sharing, first set the phone and TV proxies to “Off” or “None,” then disable LAN access on the PC and remove any inbound rules you added for this setup. If you set a bind address for your home network adapter, also check that the PC’s own proxy settings can still reach the local endpoint.

Download Clash