muzzdang

Second Brain notes from YouTube & builds

Second Brain notes

AI Tools: 自己架 VPN,喺香港用 Claude Code💪+Hostinger VPS、WireGuard 設定到驗證 IP(新手必看|廣東話)

Watch on YouTube: https://www.youtube.com/watch?v=ksM1CwdGmD0

Channel: 16 AI | AI 自動化

Why Hong Kong Users Need a Self-Hosted VPN for Claude Code

Accessing Claude Code from Hong Kong has become increasingly difficult because Cloudflare’s IP reputation databases flag most Hong Kong IPs — including those from commercial VPN providers — as datacenter or VPN addresses. When the video creator tested a popular commercial VPN (NordVPN) on ip.net.coffee, the IP scored poorly on trust and risk metrics, confirming that off-the-shelf VPNs are not reliable for this use case. The video argues that the most practical and cost-effective path is to spin up a private WireGuard tunnel on a VPS whose geographic location matches the country of your payment method.

What the Video Covers

The tutorial compares three approaches for Hong Kong users who want to run Claude Code:

  • Third-party API proxies — dismissed as expensive and opaque.
  • Self-hosted VPS + WireGuard — recommended; roughly US$3–5 per month with full control over the exit IP.
  • Renting a physical machine abroad (e.g., a remote Mac mini) — functionally similar to the VPS route but heavier and costlier.

The creator also mentions Vercel AI Gateway as an alternative that bills at official Anthropic prices, but notes it is usually more expensive than a self-hosted VPN.

Step-by-Step Walkthrough

1. Provision a Hostinger VPS

Choose a VPS plan (the video cites ~US$3–5/month) and, critically, select a server region that matches the country of your foreign payment method (e.g., a UK-issued card → UK data center). This alignment helps avoid fraud flags downstream.

2. Deploy WireGuard via Hostinger’s One-Click Installer

In the Hostinger control panel, navigate to OS & Panel → Applications → WireGuard. Deploy the application and save the generated password — you will need it for the client configuration.

3. Configure the WireGuard Client

  • Install the official WireGuard client on your local machine (Windows, macOS, Linux, iOS, Android).
  • Import the configuration file using the VPS public IP and the saved password.
  • Edit the [Interface] section to include AllowedIPs = 0.0.0.0/0 so that all traffic routes through the tunnel.

4. Verify IP Reputation

Visit ip.net.coffee with the tunnel active. The goal is a trustscore of 100 and a risk score above 90. In the demo, the freshly provisioned VPS IP hit trustscore 100 and risk score 91 — a clean bill of health.

5. Eliminate Timezone, Language, and DNS Leaks

  • System timezone: Set your OS clock to the VPS country’s timezone (e.g., Europe/London).
  • Browser language: Use English with Traditional Chinese (Taiwan) — en-US, zh-TW — to mimic a legitimate user from the target region.
  • DNS over HTTPS: Disable “Use DNS over HTTPS” in your browser (Firefox/Chrome/Edge) to prevent DNS queries from bypassing the tunnel.

Tools, Numbers, and References

  • Hostinger VPS: ~US$3–5/month (exact plan not specified in the video).
  • ip.net.coffee: Free IP reputation checker; target trustscore 100, risk score >90.
  • WireGuard: Modern, high-performance VPN protocol deployed via Hostinger’s panel.
  • Claude Code: Target service that enforces geographic IP restrictions via Cloudflare.
  • Vercel AI Gateway: Alternative access path; billed at official Anthropic rates.
  • NordVPN: Shown in the IP-check segment (affiliate link disclosed).
  • Remote overseas Mac mini (AIMacMini): Heavier, managed alternative to a VPS VPN.

自己搭建 WireGuard 呢個方法呢係最比較可行

克服咗佢,你有到一個全球比較即係頂尖嘅優勢

你個 IP 信用評分 trustscore 100,風控上到 91 分,已經係好安全

Caveats and Hype Check

  • Sponsorship disclosure: Hostinger is the video sponsor (affiliate link in the description); NordVPN is also linked. The recommendation is therefore not purely independent.
  • IP policy volatility: Even a clean IP today can be reclassified tomorrow. Ongoing monitoring on ip.net.coffee is advisable.
  • Leak hygiene is mandatory: A single DNS leak or timezone mismatch can trigger a ban. The video demonstrates the checks live, but maintaining them is the user’s responsibility.
  • Cost comparison: The US$3–5/month figure assumes a multi-year Hostinger commitment; monthly billing will be higher.

Concrete Next Actions

  • [ ] Purchase a Hostinger VPS with the server region matching your foreign payment method country.
  • [ ] Deploy WireGuard via OS & Panel → Applications → WireGuard; record the generated password.
  • [ ] Install the WireGuard client locally and import the configuration using the VPS IP and saved password.
  • [ ] Add AllowedIPs = 0.0.0.0/0 to the client config to force full tunneling.
  • [ ] Verify the exit IP on ip.net.coffee; confirm trustscore 100 and risk score >90.
  • [ ] Set system timezone and browser language (English + zh-TW) to the VPS country.
  • [ ] Disable DNS over HTTPS in your browser to prevent DNS leaks.

Following this checklist gives you a reproducible, low-cost pathway to a clean exit IP for Claude Code — provided you stay vigilant about leak hygiene and IP reputation drift.