3

I am trying to run and connect multiple nodes on a single machine, i.e different nodes using different ports. I am having trouble in connecting the nodes and making them talk to each other. While debugging, I inserted a LogPrintf("%s\n",addr) in the while loop of ThreadOpenConnections() in net.cpp file.

The output in the debug.log file is always [::]:0. What does this address mean ? Is it for localhost representation or something else ?

bawejakunal
  • 507
  • 2
  • 10

1 Answers1

1

[::] is IPv6's version of localhost (0.0.0.0).

Geremia
  • 4,469
  • 4
  • 37
  • 75
  • `[::]` or `[::0]` is 'unspecified', equivalent to v4 `INADDR_ANY = 0.0.0.0`; `[::1]` is the equivalent of `INADDR_LOOPBACK = 127.0.0.1`. See https://en.wikipedia.org/wiki/IPv6_address#Special_addresses – dave_thompson_085 Oct 26 '15 at 09:36
  • @dave_thompson_085 thanks for the correction. `[::]:0` must then mean 0.0.0.0, port 0. – Geremia Oct 26 '15 at 12:03