// ERR_NGROK_3004
ngrok ERR_NGROK_3004 — invalid host header: how to fix
ERR_NGROK_3004 means the request's Host header doesn't match any active tunnel on this ngrok account.
What it means
ngrok routes traffic by Host header. A request reached the edge with a Host that has no matching tunnel — typo, expired tunnel, or stale DNS cache.
Common causes
- The tunnel name in the URL is misspelled.
- The tunnel has been killed since you copied the URL.
- Browser cached an older subdomain in DNS or HSTS.
How to fix it on ngrok
1. Confirm the tunnel is alive
$ ngrok api tunnels list2. Re-copy the URL
ngrok prints the active subdomain on its UI dashboard at http://localhost:4040.
3. Clear DNS / HSTS cache
Particularly on Chrome — chrome://net-internals/#dns and #hsts.
// the same workflow on lrok
lrok's reserved subdomains don't go stale. Once you reserve mysite, https://mysite.lrok.io is yours until you release it — even if you haven't run a tunnel in weeks.
1. Reserve once
$ lrok reserve mysite2. Tunnel any time
$ lrok http 3000 --hint mysite