I've noticed a lot of nodes with connection_type UDP vs TCP. Are the UDP ones running the same IRI api?

Specifically, I'm trying to write to a network connection:

conn.Write([]byte("{\"command\": \"getNodeInfo\"}"))

I'm not getting anything back. However, "getNodeInfo" over HTTP TCP work fine.

1 Answer 1


There are three different protocols and ports involved when running a node:

  • HTTP control / API port (default tcp 14265)
  • TCP neighbor port (default tcp 15600)
  • UDP neighbor port (default udp 14600)

The neighbor ports are only used to transfer transactions between neighbors. That's why you are not getting anything back, the UDP port simply doesn't support the API commands.

The HTTP control / API port is the actual interface that supports such commands but (by default) is not accessible from public.

  • Is HTTP not running via port 80?
    – Helmar
    Dec 23, 2017 at 11:34
  • @Helmar HTTP can run on any port you choose, it's just that IRI (the node software) doesn't have a default port specified for that.
    – cmpn
    Dec 23, 2017 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.