개발로그/자동화

n8n cloude 사용중일 때, 호출지의 ip 확인하는 코드 공유

그리너리디밸로퍼 2025. 7. 11. 10:42

결론부터 말하자면, n8n은 정적 ip를 사용하고 있지 않음을 확인했다. 고객센터에서 확인한 결과 n8n 클라우드 서비스를 이용할 때 사용될 수 있는 ip 리스트는 후반에 공유하겠음. 'ㅅ'. 

그럼에도 불구하고, 현재 호출되는 api의 ip 주소를 확인하고 싶다면 CODE(function) 노드를 사용해서 아래 스크립트를 사용하면 된다. 

 

// Mode: Run Once for All Items
try {
  const { ip } = await this.helpers.httpRequest({
    url: 'https://api.ipify.org?format=json',
    json: true,
  });
  return [
    {
      json: { myEgressIp: ip },
    },
  ];
} catch (err) {
  // This will print the real error to n8n's log
  console.log('🛑 Code node error:', err);
  // Then bubble it up so n8n still fails the node visibly
  throw err;
}

 


마지막으로 n8n 고객센터에서 받은 답변을 공유합뉘다. 도움이 되면 좋겠네요. 

 

n8n Cloud does not guarantee static outbound IP addresses, as the infrastructure is dynamic and may change without warning. However, outbound traffic from n8n Cloud may originate from any of the following IP addresses or ranges:

  • 20.79.227.226/32
  • 20.113.47.122/32
  • 20.218.202.73/32
  • 98.67.233.91/32
  • 4.182.111.50/32
  • 4.182.129.20/32
  • 4.182.88.118/32
  • 4.182.212.136/32
  • 98.67.244.108/32
  • 72.144.128.145/32
  • 72.144.83.147/32
  • 72.144.69.38/32
  • 72.144.111.50/32
  • 4.182.128.108/32
  • 4.182.190.144/32
  • 4.182.191.184/32
  • 98.67.233.200/32
  • 20.52.126.0/28
  • 20.218.238.112/28
  • 4.182.64.64/28
  • 20.218.174.0/28
  • 4.184.78.240/28
  • 20.79.32.32/28
  • 51.116.119.64/28

You can add these to your Coupang Open API allow-list, but please note that these may change, and n8n cannot guarantee that your traffic will always originate from the same IP.

There are no additional steps or prerequisites you can take on n8n Cloud to guarantee a static IP. If you require a truly static outbound IP, you would need to self-host n8n and configure your own NAT gateway or firewall.

Reference: n8n Cloud IP documentation

For more details, see the official documentation: https://docs.n8n.io/hosting/cloud/#cloud-ip-addresses

728x90