Your first connection
This example uses a Direct node, so it does not require a paid proxy subscription or a remote server. It checks that Yuhaiin is receiving traffic. For a clean backend installation, reuse the enabled Mixed inbound on 127.0.0.1:1080; you do not need to create an inbound first. Later you can replace Direct with your own proxy node.
Before you begin
Section titled “Before you begin”Start Yuhaiin and open the local Web UI. The sidebar uses task-oriented groups such as Destinations, Routing, Traffic entry, and Diagnostics.
Step 1: Add a destination
Section titled “Step 1: Add a destination”- Open Destinations → Nodes (the node page).
- Add a node and choose the Direct template.
- Give it a recognizable name, such as My direct connection, then save.
- On Home, find the setup card and choose that node as your default destination. Make sure both TCP and UDP selections are configured where available.
Direct means that Yuhaiin connects to the website using this computer’s internet connection. It does not hide your public IP address.
Open Routing → Route rules and review Unmatched traffic. To use your selected node for traffic without a matching rule, set the default mode to Proxy and set its default target appropriately. If the mode is Direct, a remote proxy node you selected may never be used. Save and apply any pending changes.
If you already have proxy-provider settings, you can add a SOCKS5, HTTP, Shadowsocks, Trojan or other supported node instead. The provider must give you the address, port and any required credentials. See Nodes and subscriptions.
Step 2: Enable a local entry
Section titled “Step 2: Enable a local entry”- Open Traffic entry → Inbounds.
- On a fresh backend installation, find the existing, enabled mixed inbound. Its default listen address is
127.0.0.1:1080. You do not need to create another inbound. - Check its Network → Host and runtime status before proceeding. Use the address that your own configuration displays.
- Only if no usable inbound exists, create a Local preset and enable it. The React editor currently proposes
127.0.0.1:9002for a new preset. This is not the backend’s first-start default.
Local means on this computer. It is not the IP address of a remote proxy provider.
Step 3: Tell one application to use it
Section titled “Step 3: Tell one application to use it”Configure your browser or another application to use an HTTP proxy or SOCKS5 proxy:
- Host:
127.0.0.1 - Port:
1080on an unmodified, fresh backend installation - Type: HTTP or SOCKS5
Always use the address and port shown in your actual inbound settings. Existing configurations, migrated installations and additional presets can use another port. Not all browsers provide independent proxy settings; some inherit your operating system’s configuration.
Visit a familiar website. Then open Monitoring → Connections. A new connection entry indicates that the application reached Yuhaiin.
Step 4: Check the result
Section titled “Step 4: Check the result”Open Diagnostics → Network diagnostics and run the default hostname check. This tests several backend paths, but it cannot by itself prove that a particular browser is configured to use the local inbound. Confirm both the Connections page and a successful page load.
If you see no connections, the application is probably not using the configured proxy. See Troubleshooting.
What next?
Section titled “What next?”- To proxy other devices on your LAN, read Local versus LAN proxy.
- To capture more system traffic, read System-wide TUN.
- For different destinations for different websites, read Routing rules.
Advanced: what establishes the default port?
Section titled “Advanced: what establishes the default port?”The backend’s DefaultSetting() creates the enabled mixed listener on 127.0.0.1:1080. During first-start initialization, SqliteDB imports the default configuration into persistent SQLite state. The React presetInbound() is only consulted when a user creates another preset.
For a reliable test on Linux/macOS, run curl --proxy http://127.0.0.1:1080 https://example.com/ against an unchanged fresh configuration; on Windows use curl.exe. If you customized the inbound, change the port in this command. A successful response proves the proxy path works, not that a remote proxy node was selected.