Infra · 2026 · Jasa
Three doors into the computer at home
The computer at home holds a few terabytes of files. I wanted to reach it from anywhere, and ended up giving it three routes: direct at home, a relay in China, and Cloudflare as a fallback.
No public address at home
The network at home sits behind a router I can’t change. The computer has neither a public IPv4 nor an IPv6 address, so nothing outside can find it. The only way is the other way round: the computer connects out, and I come in along that line.
Three doors, one lock
Open the file page now and there are three buttons in the bottom-right corner, one for each route.
- Local network: at home I connect straight to the computer, without leaving the house.
- Relay: the computer stays connected to a small server in China, and when I’m out I come in through that server.
- CF: a Cloudflare tunnel. It’s the slowest from inside China, but it works anywhere and covers for the other two when they fail.
All three routes end at the same authentication gateway. I sign in first with an email code or a passkey, and only once the gateway knows it’s me does it let me through to the files. The file service itself only listens on the machine, so nothing outside can reach it directly.
The network wasn’t the slow part
When it was first set up, downloading a 128 MB test file at home ran at 82 KB/s. Latency was two or three milliseconds and the Wi-Fi link was over two gigabits, so by every measure it shouldn’t have been that slow.
Later I switched the file manager to a different open-source project with a newer interface. Tested again on the same home network: 75 MB/s down and 14 MB/s up.
I didn’t dig into whether the old program itself was slow or whether the way the browser downloaded from it was the problem. One thing is certain: the bottleneck wasn’t the wire.
What I took away
- Measure throughput; don’t guess speed from latency. Two milliseconds of latency doesn’t mean a file will move at full speed.
- Doors can multiply; one lock is enough. All three routes share one gateway, so there’s only one place to maintain.
- The relay route was stuck for a long time. In the end the cloud server’s own firewall wasn’t letting the port through. Everything inside the server was right, and still nothing outside could connect.
