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.

My devicephone or laptopHome Wi-FidirectRelay serverrelayCloudflarefallbackGatewaythen the files
Three doors, one lock. Whichever way you come in, you pass the same gateway first.

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.

  • Before · download0.08
  • After · download74.8
  • After · upload13.9
Same home network, in MB/s. The only change was the file manager.

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

← All notes