How to connect with localhost?

“error”:
{
“message”:
“connect ECONNREFUSED 127.0.0.1:6060”,
“name”:
“Error”,
“stack”:
“Error: connect ECONNREFUSED 127.0.0.1:6060 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)”,
“code”:
“ECONNREFUSED”
}

Hi, how can we connect services running on local services using http node?
my n8n instance is self hosted using docker compose, and nginx as reverse proxy.
n8n version 1.17.1

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @Rajan,

127.0.0.1 refers to the local host of the machine or container, Assuming you don’t have these services running in the same container as n8n you would need to use the containers name if they are all in the same container network or use the containers IP if you know what it is.

1 Like