Tech & AIrelated: r/selfhosted

Host a website from your bedroom with Cloudflare Tunnel

Serve a site from a Pi at home with no open ports and a real HTTPS address.

time
two hours
cost
cheap
effort
some effort
where
at home

what it is

  • Cloudflare Tunnel makes an outbound connection from your machine to Cloudflare.
  • Visitors reach your site without you touching the router.
  • The free plan covers it if you own a domain.

how it goes

  1. Run a small web server on a Pi or old PC, even python -m http.server.
  2. Add your domain to a free Cloudflare account.
  3. Install cloudflared and create a tunnel from the Zero Trust dashboard.
  4. Map a subdomain to your local port and open it on mobile data.

you need

  • a domain, about $10 a year

why try it

There is no port forwarding and your home IP stays hidden.

More in Tech & AI, or pick a niche.