Windows local installation (not docker), webhooks port mapping

Hello,

Installed in a windows 11 machine, no docker.

PS C:\Users\Me> $env:WEBHOOK_URL=‘http://localhost’; npx n8n@latest
User settings loaded from: C:\Users\Me.n8n\config
(node:28824) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
Initializing n8n process
n8n ready on 0.0.0.0, port 5678
Version: 1.74.3

Editor is now accessible via:
http://localhost:5678/

Press “o” to open in Browser.

enabled port 80 in windows firewall

simple euro demo example that uses webhook

Listening for test event

Make a GET request to:

Try: http://localhost/webhook-test/eu-exchange-rate

This site can’t be reached

localhost refused to connect.

ERR_CONNECTION_REFUSED

Try: http://localhost:5678/webhook-test/eu-exchange-rate

Works, got the notification.

Switched to production, same behavior, wors only for 5678 port

http://localhost:5678/webhook/eu-exchange-rate

Information on your n8n setup

  • **n8n version:Version: 1.74.3
  • **Database (default: SQLite):default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):powershell
  • **Operating system: Win11

Hey @cio

I would recommend using docker and a tunnel service like ngrok or cloudflare that way you won’t need to worry about firewall rules and the container will have everything you need to run n8n