I have a window server I installed n8n using npm on it and and started nomally i configure a domain using iis reverse proxy i trying to listen that particular n8n port running i also use .env file writing some confugration related when i trying to access the URL n8n connected but not showing me the login page shows a popup in bottom-right, Error connecting to n8n
Could not connect to server. Refresh to try again
and in console there are errors like–
1=> sentry.js:1
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
2=> ResponseError: Can’t connect to n8n.
at request
3=> Failed to load resource: net::ERR_NAME_NOT_RESOLVED
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.)
Information on your n8n setup
- n8n version: ==> 1.88.0
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: window server 2019
Hi, can you confirm that locally on the server you can reach the n8n on port 5678 and provides the webinterface
Reg,
J.
Hii, Thanks for replying yes i locally its working fine I test it with the command curl localhost:PORT its returning me proper html response and in browser n8n login console.
Hi, so what did you configure in IIS? The error indicates a name resolution problem.
Regards
J.
I made a reverse proxy to my port made an inbound rule on my domain to redirect my selected port on which n8n is running i guess the problem is in my config file.
Hi, yes most likely but without seeing a configuration it’s hard to say anything really
Regards
J.
Here is my env
################
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=********************
N8N_BASIC_AUTH_PASSWORD=******************
N8N_PORT=5678
N8N_PROTOCOL=http
N8N_HOST=0.0.0.0
N8N_EDITOR_BASE_URL=https://example.com
N8N_ENDPOINT_REST=/rest
N8N_ENDPOINT_WEBHOOK=/webhook
WEBHOOK_TUNNEL_URL=https://example.com
N8N_COOKIE_SESSION_ENABLED=true
N8N_COOKIE_SESSION_METHOD=jwt
N8N_SECURE_COOKIE=false
N8N_ENCRYPTION_KEY=*********************
NODE_ENV=production
Hi, you have a tunnel as well as a reverse proxy?
There is no webhook_url
Also the most important is your reverse proxy configuration and whether the proxy is publicly reachable or you need tunneling
J.