I am trying to follow the simple example in the official docs, but when I run:
./example slave localhost 8080 &
./example slave localhost 8081 &
./example slave localhost 8082 &
./example slave localhost 8083 &
./example master localhost 8084
What I expected:
Slaves: [nid://localhost:8083:0,nid://localhost:8082:0,nid://localhost:8081:0,nid://localhost:8080:0]
What I see:
Slaves: []
What am I doing wrong?
It turns out that the slaves were binding to IPv6 localhost instead of IPv4:
Telling them to bind to
127.0.0.1
in place oflocalhost
does the trick.