4

I've noticed a lot of nodes with connection_type UDP vs TCP. Are the UDP ones running the same IRI 1.4.1.4 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.

Helmar
  • 1,293
  • 1
  • 15
  • 28
Andrew Arrow
  • 127
  • 6

1 Answers1

4

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.

takra
  • 435
  • 2
  • 9
cmpn
  • 66
  • 5