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.
| Field | Example value | What it does |
|---|---|---|
mixed-port | 7890 | Accepts HTTP and SOCKS proxy connections on the same port. If the device’s proxy menu only offers HTTP, select HTTP. |
allow-lan | true | Allows 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
- Find the IPv4 address of the active network adapter. On Windows, run
ipconfigin 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. - 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. - 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, orproxies.
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
- iPhone: Go to “Settings” → “Wi-Fi” → tap the info button next to your current network → “Configure Proxy” → “Manual.” Enter
192.168.1.23as the server and7890as the port, then save. If the PC’s proxy requires authentication, enter the corresponding username and password. - Android: On stock Android, go to “Settings” → “Network & internet” → “Internet” → settings for the current Wi-Fi network → “Edit” → “Advanced options” → “Proxy” → “Manual.” Enter the PC’s IP address as the proxy hostname and the mixed port as the port. Depending on the manufacturer, “Proxy” may be under “Modify network” or on the Wi-Fi details page.
- TV: Open the current connection under “Settings” → “Network & Internet” or “Network,” then look for “Proxy settings” or “Advanced options” when editing the network. Enter a host and port only if the TV offers a manual HTTP proxy option. If the TV only has “IP settings” and “DNS settings,” don’t enter the proxy address as the gateway or DNS server; that screen doesn’t support this method. You can also check whether the app you want to use has its own proxy settings.
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
- Check whether the PC is listening. In Windows PowerShell, run
Get-NetTCPConnection -LocalPort 7890 -State Listen. If the only result is127.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. - 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
curlwithcurl.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/
- Can’t connect to the proxy port: Check whether the PC’s IP address has changed, whether the client is listening on that address, whether the firewall allows the connection, and whether the router isolates the two devices. A successful or failed
pingis not a substitute for testing the TCP port. - The proxy returns
407: The proxy port is reachable, but the request didn’t include valid credentials. Check the authentication settings in the client and whether the phone or TV supports proxy authentication. - CONNECT succeeds, but webpages won’t load: Open “Connections” or “Logs” in the client and check which rule matches the destination domain and which policy group is used. A match for
DIRECTmeans the PC connects directly to the destination; it doesn’t mean the device bypassed the proxy. If a proxy group is matched, check the current node and the PC’s DNS resolution and outbound connection. - The browser works, but one app doesn’t: Check the client’s connection list while using the app. If browser tests appear there but the app’s requests don’t, first check whether the app uses the system proxy. Don’t keep changing the bind address or loosening firewall rules.
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.