List of available addresses
Some services may be running on machines with more than one network interface; here, you will find a list of all announced IP addresses to connect through those different interfaces.
Metadata
This data is the same as the one that gets registered
through IService.announce
.
Host name
Port number
Retrieve an IP from the addresses list
The network
parameter is an array containing the network list
where your service is. The CIDR notation is used to represent the networks.
This method may return null
if no addresses could be found within
the list of provided networks, or if the node provides no networks.
IServiceNode interface
IServiceNode are received through the
on
andonce
event listeners; they normally contain the network information and metadata necessary for you to be able to connect and use this service instance.IServiceNode