Need help to connecting n8n with ngrok

Describe the problem/error/question

What is the error message: I am currently install ngrok and generate the link from docker by creating new container now when I start using a pop showed me “ERROR 3200”

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, desktop app):
  • Operating system:
1 Like

Hi @Prashant_Kumar3 Welcome to the community!
If you are using Ngrok or Cloudflare like setup which gives temporary tunnel link without payments, i recommend using NPM version of n8n as it is very easy to setup with Ngrok or cloudFlare, just install NODE.js with it you will get npm and then install n8n using npm:

And once the installation is done, before starting n8n, run NGROK to get a link on a port 5678 of localhost and once it starts then open another Command Line terminal type set WEBHOOK_URL=YOUR_NGROK_LINK press enter and then just type n8n and it will start up and will give you the same link which you have set and then it can be used using that link, just make sure to not loose connection as that would fail the Ngrok client and your n8n instance would become down.

Welcome to the n8n community @Prashant_Kumar3

The ERROR 3200 from ngrok typically means there’s an issue with your ngrok configuration or authentication.

If you are using Docker Compose try this recommended approach:

services:
  n8n:
    image: n8nio/n8n
    ports:
      - "5678:5678"
    environment:
      - WEBHOOK_URL=https://your-ngrok-url.ngrok.io/
    
  ngrok:
    image: ngrok/ngrok:latest
    command: http n8n:5678
    environment:
      - NGROK_AUTHTOKEN=your_auth_token_here
    ports:
      - "4040:4040"  # ngrok web interface

If running ngrok separately:

ngrok http 5678

Quick Fixes to Try

  1. Get your auth token: Visit ngrok — Log in

  2. Add the token: ngrok config add-authtoken YOUR_TOKEN

  3. Restart ngrok: ngrok http 5678

  4. Update n8n’s WEBHOOK_URL environment variable with your ngrok URL

Once you have your ngrok URL, you need to set it as your n8n WEBHOOK_URL environment variable and restart n8n for the changes to take effect.

Can you share how you’re running ngrok command or docker-compose? whether you’ve added your auth token?

hey, ERROR 3200 means ngrok can’t find the tunnel, which usually happens when the ngrok process isn’t running anymore or you’re hitting an old URL that expired. Free ngrok gives you a new URL every time it restarts so if you copied the link earlier and ngrok restarted since then that would explain it. Make sure both containers are actually running at the same time and grab the current URL from ngrok’s web interface at localhost:4040, also don’t forget to update your WEBHOOK_URL env var in n8n to match whatever ngrok gives you otherwise webhooks won’t route properly.