Without your own domain
Homelander runs fine on a home server or an always-on laptop, and with TELEGRAM_UPDATES=polling the bot needs no inbound connection at all. The site still needs a public address: this page shows how to get a free, stable one without buying a domain.
Why an address is needed even with polling
Polling only means Telegram never has to reach your machine. People still do: registration, login, the admin panel, the resident cabinet and the MCP connection all open in a browser, from links the bot sends. With PUBLIC_URL=http://localhost:8080 those links open only on the machine itself, not on a resident's phone. While that is the case, the admin panel's Overview shows a warning and the service writes one to the log at startup.
PUBLIC_URL must be https (plain http is accepted only for localhost), and it must not change: the bot hands out links with it and, with TELEGRAM_UPDATES=webhook, registers the webhook there.
Tailscale Funnel (recommended)
Tailscale Funnel publishes a local port on the internet under a permanent https://<machine>.<tailnet>.ts.net address. It is free on every Tailscale plan, including the personal one, needs no open ports and no domain, and the certificate is taken care of.
Install Tailscale on the machine that runs Homelander and log in (
tailscale up). Funnel needs Tailscale 1.38.3 or later and MagicDNS turned on for your tailnet (admin console → DNS).Publish the port in the background:
shtailscale funnel --bg 8080The first time, the command prints a link to approve Funnel for your tailnet: approving it turns on HTTPS certificates and adds Funnel to the tailnet policy. Then it prints the address, for example
https://homes-box.tail1234.ts.net. It keeps running after a reboot.Set
PUBLIC_URLto that address andTRUST_PROXY=true, then restart Homelander.Keep Homelander reachable only through Funnel: with
TRUST_PROXY=trueanyone who reaches port 8080 directly could pretend to be any address and get around the login rate limits. Run it on127.0.0.1:8080; with Docker Compose changeportsto"127.0.0.1:8080:8080"(Funnel runs on the host and forwards to its ownlocalhost, so this still works). Then check the client IP as in Docker Compose.
tailscale funnel status shows what is published; tailscale funnel reset turns it off. Public DNS for a new address can take up to 10 minutes.
Good to know: Funnel is in beta; it listens only on ports 443, 8443 and 10000 (443 is the default); its traffic has a bandwidth limit that Tailscale does not publish, which is plenty for a community site.
With Docker Compose, run Tailscale on the host, not in the container.
Cloudflare Tunnel (if you already have a domain on Cloudflare)
Cloudflare does not give out free domains, but if your domain is already on Cloudflare, a Cloudflare Tunnel gives it to the machine with no open ports:
- In the Cloudflare dashboard: Networking → Tunnels → Create a tunnel, name it, and run the install command it shows on your machine. Wait until the tunnel is Healthy.
- In the tunnel, Routes → Add route → Published application: choose a subdomain and your domain, and set the service URL to
http://localhost:8080. - Set
PUBLIC_URLtohttps://<subdomain>.<your domain>andTRUST_PROXY=true, and publish Homelander only on127.0.0.1:8080, as with Funnel above.
Cloudflare Quick Tunnel: only to try things
cloudflared tunnel --url http://localhost:8080 gives a trycloudflare.com address with no account and no domain. Don't use it for residents: the address is random and changes every time the tunnel is started, so every link the bot has sent stops working. Cloudflare itself describes it as a tool for testing.
Or host it
If you'd rather not keep a machine on at home, Railway gives the service a public domain.
Polling or webhook
With any public address both work. At home polling stays the simplest: nothing about Telegram depends on the address. webhook is fine too, as long as the address is stable.