How to know the address ip addresses of the nodes

I’m trying to look for the IP addresses of all the nodes available in a specific subnet
How do I look for the addresses?

Hi Pramit
Why would you like to know the IP addresses? Requests to the subnet will be routed to the right place by the boundary nodes…

In our smart contract, we’re trying to make HTTP outcall to an API of
when I tried calling the API through localhost, I was getting some cloudflare blocked error. I thought it might work on mainnet, but we’re getting consensus error. When I described the error in the discord server, they told me that, some of the node might not be whitelisted, so some are receiving cloudflare error and some are receiving the result calling the API.
So I want to know IP address of the nodes so that I can provide the IP addresses to the team for whitelisting.

I see. In this case I guess the easiest would be to use ic-admin to get the node records and extract the IP address from there
e.g., with ./ic-admin --nns-url get-node $NODE_PRINCIPAL

While performing HTTP outcalls, calls are routed from boundary nodes or it’s direct call from each subnet’s node?

direct from the nodes in the subnet

1 Like

Thank you @yvonneanne

Let me know if that works to resolve your problem.

A word of caution: nodes can be swapped in and out of subnets based on proposals, so getting the IPs for the nodes in subnet once cannot be used for a permanent whitelist…
If the IC starts swapping nodes often (currently it’s a rare event, controlled with proposals the NNS votes on), a better way would need to be found.

1 Like

thank you!
I have collected the ip addresses and waiting for yellowcard to whitelist the ip addresses!
will update you about the result!