Self-host n8n and receive webhooks from anywhere
Triggers need a public address. Give your n8n (or Node-RED, Activepieces, Windmill) a stable HTTPS URL without opening your router or renting a server.
- n8n
- Node-RED
- Activepieces
- Windmill
- Huginn
- Home Assistant webhooks
Set it up in three steps
- 1
Run n8n
The default port is 5678.
docker run -it --rm -p 5678:5678 docker.n8n.io/n8nio/n8n - 2
Pick a name and open the tunnel
Your own name is part of the paid plans (Lite and up). It is tied to your SSH key, so nobody else can take it, and the webhook URLs you give to other services never change. On the free plan your key keeps the same random address.
ssh -o ServerAliveInterval=30 -R myflows:80:localhost:5678 exposenow.net - 3
Tell n8n its public address
Set WEBHOOK_URL to the https address so the webhook URLs n8n shows you are the public ones.
WEBHOOK_URL=https://myflows.exposenow.net/
Why this way
Webhooks just arrive
POST requests from Stripe, GitHub, Telegram, Slack and the like go straight to your n8n, with no browser notice page in the way.
The URL never changes
Your key keeps the same address, and on paid plans a name of your choice, so you register the webhook once.
No server bill
Run it on a mini PC or Raspberry Pi you already own.
Keep the editor private
Turn on n8n user management, and keep the editor behind a login or reach it through private device access.
Questions
Do webhooks from other services work?
Yes. The first-visit notice is only shown to people opening a page in a browser. Webhook calls (POST requests and API clients) pass straight through.
What happens when the tunnel drops?
Reconnecting is yours to automate: run the command in a loop, a systemd service or autossh and it comes back with the same name. Free sessions end after the limit on the pricing page, paid plans last longer, and an enrolled device has no session limit.
Can I keep the n8n editor private?
Yes. Turn on n8n user management, or only publish the webhook paths through a small proxy and reach the editor privately with an SSH port forward.
Does it work for Node-RED or Home Assistant?
Yes. Any web app on a local port works. Use the port of your app in the command.