Choose How to Share Clash at Home
Clash does not have to run separately on every device. A computer or a compatible router can act as a proxy endpoint for phones, tablets, televisions, and other devices on the same home network. The best setup depends on how many devices you have, whether they let you enter proxy settings, and whether you want the proxy available only while a computer is running or throughout the day.
There are two common approaches. With PC LAN sharing, Clash runs on a Windows, macOS, or Linux computer and listens for connections from other devices on the local network. Each phone, tablet, or TV that supports a manual proxy is configured to use the computer’s private LAN address and Clash’s listening port. This is usually the quickest way to test sharing, and it does not require changing the router’s firmware.
With a router-based setup, a compatible router runs a Clash-compatible core such as Mihomo, or routes selected network traffic to a separate proxy device. This can keep the service available even when a PC is off and may cover devices that have no manual proxy setting. It takes more planning, however: router hardware and firmware must support the required features, and mistakes can affect the whole network.
Quick Recommendation
For a few devices that support manual proxy settings, start with PC LAN sharing. Choose a router or always-on gateway when you need broader coverage, want the proxy available without a computer, or have devices that cannot be configured individually.
Keep the difference between a proxy and a network gateway in mind. A manual HTTP or SOCKS proxy setting applies to apps and traffic that honor that setting; it does not automatically redirect every packet from the device. Router-level transparent routing can cover more traffic, but it is a separate, more involved configuration. Neither approach makes an untrusted proxy safe, and sharing a proxy does not replace a firewall or account security.
1PC LAN Sharing: Simple and Easy to Test
In this arrangement, the PC is the host and the other devices are clients. They must be connected to the same reachable local network, such as the same home Wi-Fi or the same trusted wired LAN. A guest Wi-Fi network may isolate wireless clients from one another, so a phone on guest Wi-Fi might not be able to reach the computer even though both have internet access.
First identify the computer’s private LAN address. On Windows, check the active network adapter in Settings or run ipconfig in Command Prompt and find its IPv4 address. On macOS, check the active connection in System Settings or use ifconfig in Terminal. The address often looks like 192.168.1.25 or 10.0.0.25, but your network may use a different private range. Use the address of the interface connected to the home network, not a public IP address, a loopback address such as 127.0.0.1, or a VPN adapter address.
Next, configure Clash to accept connections from other devices. In a Mihomo-compatible YAML profile, a basic starting point is:
mixed-port provides a port that accepts both HTTP and SOCKS proxy connections. If your profile already defines port, socks-port, or mixed-port, avoid creating conflicting entries; use the port that your active core actually exposes. allow-lan: true enables LAN access, while bind-address: 0.0.0.0 listens on available network interfaces. Some clients expose equivalent switches in their settings rather than requiring a YAML edit. Apply the change and restart or reload the running core if your client requires it.
Do Not Publish the Port
LAN sharing is for a trusted local network. Do not create a router port-forwarding rule for the Clash listener, bind it to a public interface, or share it over an untrusted Wi-Fi network. If your configuration supports authentication, use it when appropriate, but do not treat a password as a reason to expose the listener to the internet.
When the operating system asks whether Clash may communicate on a network, allow access only on the private or trusted network profile you use at home. A firewall rule that permits the listener on public networks can expose the service to people nearby. If you cannot connect after enabling LAN access, check the firewall before disabling it altogether: allow the relevant Clash process or listening port on the private network, then test again.
On each client device, open its Wi-Fi or network proxy settings and choose a manual proxy. Enter the PC’s current LAN address as the server or host and the listening port from the Clash configuration. Select HTTP if the device asks for a proxy type and you are using the mixed or HTTP port; use SOCKS only when the configured listener supports it. Save the setting, then test a website or app that should follow the active Clash rules.
Some operating systems let you set a proxy for one Wi-Fi network only, which is usually preferable to setting it globally. Keep in mind that apps may ignore system proxy settings, and some TVs expose no manual proxy controls. A successful browser test does not prove that every app is using the proxy. Also remember that a PC’s LAN address can change after a router restart or DHCP lease renewal. If that happens, update the client settings or create a DHCP reservation in the router so the computer keeps the same private address.
2Set Up and Verify PC Sharing
Use this sequence to make the first test predictable. Change one setting at a time and keep a note of the host address and port you chose. If a step fails, you will know whether the issue is on the Clash host, the network, or the client device.
- Confirm the network: Connect the computer and one test phone or tablet to the same home network. Temporarily avoid guest Wi-Fi, client isolation, and separate VLANs unless you have deliberately configured them to communicate.
- Find the host address: Record the computer’s current private IPv4 address from the active Wi-Fi or Ethernet connection. Do not copy an address from a disconnected adapter or a virtual machine.
- Enable the listener: Turn on LAN access in your Clash client or set the relevant Mihomo options in the active profile. Confirm the listening port, then reload the core.
- Permit private-network access: Approve the application in the computer’s firewall for the home network. Keep public-network access blocked unless you have a specific, well-understood reason to change it.
- Configure one client: Enter the host address and port in that device’s manual Wi-Fi proxy settings. Start with one browser or app rather than changing every household device at once.
- Check the result: Make a test request and inspect the Clash connection or traffic view. Confirm that the request reaches the PC and is handled by the expected rule and proxy group.
- Document the settings: Note the port, host address, and which devices use the proxy. If the PC address changes, update clients or reserve the address in the router.
Interpret failures in layers. If the client cannot connect to the proxy at all, verify that the Clash core is running, LAN access is enabled, the host address is correct, and the firewall allows the connection. If the client connects but traffic does not behave as expected, check the active mode, rules, selected proxy group, and core log. A manual proxy does not bypass the rules in your profile: traffic can still be sent directly, proxied, or rejected according to the matching rule.
When the browser works but a particular application does not, the app may not honor the operating system’s proxy setting, may use its own network stack, or may require UDP traffic that a conventional HTTP proxy does not carry. Do not assume that a mixed port automatically provides transparent routing for every protocol. For those devices, consider an app-specific proxy option, a compatible router setup, or leaving that device unproxied if the use case allows it.
Practical Test Tip
Test once with the proxy disabled and once enabled, then compare the Clash connection log. This helps distinguish a proxy reachability problem from a rule or node-selection problem.
For a household with several devices, change settings in small batches. Keep a record of each device’s original proxy setting so you can restore it quickly. If someone needs direct access for a work app, local service, or casting feature, avoid forcing a whole-device proxy without testing those functions. Some local discovery and streaming features expect devices to communicate directly over the LAN.
3Router-Based Sharing and Choosing the Right Option
A router-based setup is useful when you want coverage beyond devices with manual proxy controls, or when the proxy should remain available while your PC is shut down. There are two broad designs: run a compatible Clash core directly on the router, or use a separate always-on computer or gateway and configure the router to direct selected traffic through it. The exact steps depend on the router model, firmware, core, and network layout; there is no universal switch that turns every router into a Clash device.
Before installing anything, verify that the router has supported firmware, sufficient CPU and memory for the protocols and traffic you expect, and a safe recovery path. Check whether the firmware provides a maintained Mihomo-compatible package or a documented proxy-routing feature. Do not upload a random firmware image or install a package made for a different hardware revision. Save the router’s current configuration and make sure you understand how to restore it before changing routing or DNS settings.
Start with the least disruptive design. If the router’s client firmware supports a proxy mode, configure a small test group or one device first. If you use a separate gateway, give it a stable private address and ensure the router and gateway can reach each other. Decide whether only selected devices or the whole network should use the proxy. Per-device or policy-based routing is easier to troubleshoot and helps keep local services, banking apps, and ordinary local traffic on the intended path.
Transparent routing and manual proxy settings are not interchangeable. Manual settings send supported application requests to a proxy listener. Transparent routing changes how the gateway handles packets and may need policy routing, firewall rules, DNS handling, and protocol-specific support. A router that can run Mihomo may offer these features through its firmware, but the details vary. Read the firmware documentation and avoid copying a configuration designed for a different router or network topology.
Compare the trade-offs before moving the whole household:
- PC LAN sharing: Fast to test, inexpensive, and straightforward to turn off. The PC must stay powered on, its address must remain reachable, and each client generally needs its own proxy setting.
- Clash-capable router: Can stay online independently of a PC and may serve devices that do not offer manual proxy controls. It requires compatible hardware, careful firmware configuration, and more involved troubleshooting.
- Separate always-on gateway: Lets you keep the existing router while dedicating another device to proxy duties. It adds another device and network configuration to maintain, and traffic must be deliberately routed through it.
Whichever option you choose, do not expose the Clash management controller to the household or the internet just to share proxy access. The proxy listener and the management API serve different purposes. Keep management access restricted to trusted devices, use strong credentials where supported, and never forward either service from the public internet. Share only the access needed for your home setup.
Plan how you will turn sharing off. On a PC, disable LAN access and restore the client device’s proxy setting when the computer is unavailable. On a router, keep a copy of the working profile and know how to disable the relevant policy or revert the configuration. If internet access fails for everyone after a router change, restore the previous network settings first; then test the Clash configuration separately rather than making several additional changes at once.
For most homes, the best path is incremental: verify that a single phone can reach a PC listener, confirm the expected rules are applied, and only then decide whether the convenience of router-based coverage justifies the additional setup. A reliable, limited configuration is better than enabling a network-wide proxy that nobody can easily diagnose.