Chat trigger does not respond to message with external connection (not localhost)

Hello, I have a problem that is probably silly, but I can’t get it to work. I have a basic chat that works correctly when I activate “Make Chat Publicly Available” and if I make the call from localhost… (http://localhost:5678/webhook/…) it works correctly.

But if I make the call from another computer on the same local network, changing localhost, for its IP, the WEBCHAT interface appears, but when I ask a question, it waits for … does not answer. And nothing appears in the flow, the call does not arrive. Again I indicate that in localhost, everything works correctly.

I have been looking for this information and I can only find information with the n8n platform hosted on other servers, not self hosted, and I have my own hosting.

Thanks

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

I answer myself. I have only added the variables:

N8N_LISTEN_ADDRESS=0.0.0.0
N8N_HOST=My IP
WEBHOOK_URL=http://My IP:5678

I suspect it is due to CORS error. If you open browser’s Developer Tool you might see the error.

I am also facing the same issue. How to resolve this