Mixed Port, LAN Access, and Bind Address
Run Clash or a client powered by the mihomo core on your PC, then send proxy traffic from your phone or TV to that computer. In this guide, 192.168.1.23 represents your PC's IPv4 address on the home network, and 7890 is the mixed port. Use your PC's actual address and the port currently active in the core; 7890 is not the default for every client.
mixed-port: 7890lets one port accept both HTTP proxy and SOCKS5 connections. Manual Wi-Fi proxy settings on phones typically use HTTP. Apps with explicit SOCKS5 support can use SOCKS5 on the same7890port. For HTTPS sites over an HTTP proxy, clients usually create a tunnel withCONNECT; keep the proxy type set to HTTP.allow-lan: truelets other devices connect to the proxy's listening port. It does not change your system firewall or override guest-network isolation on your router.bind-addressspecifies which local address on the PC the proxy listens on. If you bind it to192.168.1.23, clients connect to that address. This setting controls the listening interface, not which devices are allowed to connect.
This is an explicit proxy: each device or app must be configured to use it. Turning on the PC's system proxy or TUN does not automatically route traffic from your phone or TV through the PC, and you do not need to enable TUN for this setup. Once a request reaches the proxy, the PC's core mode and rules determine whether it goes direct, uses a policy group, or gets rejected.
PC Setup: Find the IP, Set the Port, Check the Listener
- Find the address your PC uses on your home network. On Windows, run
ipconfigin Terminal and look for the IPv4 address under the active “Wireless LAN adapter WLAN” or “Ethernet adapter.” On macOS, go to “System Settings” → “Network” → your active connection → “Details” → “TCP/IP.” Don't use the default gateway, a virtual adapter address, or127.0.0.1as the shared address. - In your client settings, look for “Mixed Port” and “Allow LAN.” If you manage the configuration in YAML, edit the top-level fields through the client's supported local configuration or override mechanism. Changes made only to a cached subscription may be overwritten on the next update. If a field already exists, change its value rather than adding a duplicate.
- Apply the configuration and restart the core if needed. Client settings may override YAML, so verify what is actually listening. The example below shows only the three fields for the shared proxy endpoint; keep your existing nodes, policy groups, and rules.
mixed-port: 7890
allow-lan: true
bind-address: '192.168.1.23'
On Windows, use PowerShell to check the listener with Get-NetTCPConnection -State Listen -LocalPort 7890. You should see 192.168.1.23. If the only address shown is 127.0.0.1, your phone won't be able to connect; first check whether the LAN setting or override took effect. If the logs report that the port is already in use, check the listener's OwningProcess or switch to a free port, such as 7891. Update the firewall rule and device settings to match.
Firewall: Allow TCP 7890 Only from Trusted Devices
First, make sure the PC and client devices can reach each other on the local network. The PC can use Ethernet while phones use Wi-Fi, as long as the router allows wired and wireless devices to communicate. Sharing the same Wi-Fi name does not guarantee connectivity; guest-network client isolation may block it. Connect devices you want to share with to your trusted home network, and don't disable guest-network isolation to make this work.
Windows Inbound Rule
- Press Win + R, enter
wf.msc, then go to “Inbound Rules” → “New Rule” → “Custom.” This example allows only TCP, which is used to establish an explicit proxy connection. - Under “Protocol and Ports,” select TCP and set the local port to
7890, not the remote port. Under “Scope,” you can set the local IP to your PC's192.168.1.23and limit remote IPs to the actual addresses of your phone and TV, such as192.168.1.41and192.168.1.52. - Select “Allow the connection.” On the Profile page, select “Private” only, then give the rule a clear name. Make sure Windows classifies your trusted home network as Private. Don't change a public Wi-Fi network to Private just to make the rule work.
Also check for existing inbound rules that allow the same core or port over a wider range. Adding a narrowly scoped allow rule does not restrict older rules. If you've confirmed that the devices are all on 192.168.1.0/24, you can use that subnet instead of listing individual remote IPs, but this allows more devices on the subnet to attempt a connection.
macOS and Router Restrictions
If the macOS firewall is enabled, go to “System Settings” → “Network” → “Firewall” → “Options” and check whether incoming connections are blocked for the client or core that handles them. Allowing an app here does not restrict access by source IP; use network-level access controls to isolate other devices. You don't need to set up port forwarding for 7890 on your router. Don't confuse the management interface's external-controller port with the shared proxy port.
Phones and TVs: Enter the PC's IP and Mixed Port
| Device or app | Where to configure | Example values |
|---|---|---|
| iPhone or iPad | “Settings” → “Wi-Fi” → tap ⓘ next to the current network → “Configure Proxy” → “Manual” | Server 192.168.1.23, port 7890 |
| Android phone | “Settings” → open the current Wi-Fi network's details or edit screen → “Advanced options” → “Proxy” → “Manual.” Menu names vary by Android version and manufacturer. | Proxy hostname 192.168.1.23, proxy port 7890 |
| Smart TV | Look for “Proxy” or “Proxy settings” in the current network's advanced settings. Some TV firmware doesn't offer this option. | If manual HTTP proxy is supported, enter host 192.168.1.23 and port 7890 |
| Apps with SOCKS5 support | Select SOCKS5 in the app's own connection settings. Don't enter a SOCKS5 address in the system HTTP proxy form. | Address 192.168.1.23, port 7890 |
If the form has separate host and port fields, enter only the IP in the host field—don't add http:// or :7890. After saving, open an HTTPS page in a browser to test the connection. Manual Wi-Fi proxy settings are usually saved per network; don't assume they remain active after switching to another Wi-Fi network or cellular data. If your TV has no system-wide proxy setting, you can only use apps that provide their own proxy options; changing DNS is not a substitute for proxy settings.
Can't Connect? Check TCP, Then Proxy Rules
First, Check Whether the Remote Device Can Connect
If you have another Windows PC on the same network, run Test-NetConnection 192.168.1.23 -Port 7890. A result of TcpTestSucceeded : True confirms only that a TCP connection can be made; it doesn't verify the proxy protocol or the destination site. If the result is False, check the address, listener, and firewall, then look for guest-network or device isolation. There's no need to change your subscription or proxy node yet.
Next, Check Proxy Requests and Rule Matches
On another device with curl installed, send a request through each proxy type, HTTP and SOCKS5. In Windows PowerShell, use curl.exe as the command name. If NO_PROXY is set in the terminal, make sure the test domain isn't on the bypass list.
curl --head --max-time 10 --proxy http://192.168.1.23:7890 https://example.com/
curl --head --max-time 10 --proxy socks5h://192.168.1.23:7890 https://example.com/
Each command waits up to 10 seconds. The first uses an HTTP proxy; the second sends the domain to the proxy for resolution over SOCKS5. In the HTTP proxy output, 200 Connection established means only that the tunnel was created—you still need to check whether the destination site responds. While testing, open the connection or log view in the PC client and check the source IP, destination domain, and matched policy.
- Connection logged, but the destination won't load: Check whether a rule matched
REJECTor the selected policy group uses an unavailable node. ADIRECTmatch means the PC connects directly; it doesn't mean the device bypassed the mixed port. - Browser works, but a TV app doesn't: First check whether the app generates a connection log. Some apps ignore the system proxy or use UDP traffic that a standard HTTP proxy can't forward. Successfully setting a system proxy doesn't guarantee that every app or protocol will use it.
- It worked yesterday, but times out today: Check the PC's current IP address and make sure it hasn't gone to sleep and the client is still running. If the firewall rule restricts source IPs to your phone or TV, check whether either device's address has changed.
When you're done sharing, first set the Wi-Fi proxy on your phone or TV to “Off” or “None,” then turn off “Allow LAN” in the PC client and disable the inbound rule you added. This prevents devices from sending requests to a proxy that isn't running the next time the PC is off.