Every node can provide its overlay address and underlay addresses by reading the logs when the node starts or through Debug API:
Every node can provide its overlay address and underlay addresses by reading the logs when the node starts or through Debug API. For example, for the node 1 started with configuration above:
```sh
```sh
curl localhost:6060/addresses
curl localhost:6061/addresses
```
```
Debug API is not started by default and has to be explicitly enabled with `--enable-debug-api --debug-api-addr: 127.0.0.1:6061` command line flags or options.
It will return a response with addresses:
It will return a response with addresses:
```json
```json
...
@@ -152,6 +160,8 @@ To check if two nodes are connected and to see the round trip time for message e
...
@@ -152,6 +160,8 @@ To check if two nodes are connected and to see the round trip time for message e
curl localhost:6062/addresses
curl localhost:6062/addresses
```
```
Make sure that Debug API is enabled and address configured as in examples above.
And use that address in the API call on another node, for example, local node 1:
And use that address in the API call on another node, for example, local node 1: