[Question] Details of hostname
Hi,
Is it possible to get the details of the hostname on which the nodes are running?
If I understand well you're asking about retrieve not only the IP address of the remote node but also the hostname. In this case this capability is not currently implemented. Participants only sends their IP addresses.
↪ 2018-11-02 vie 14:47, Sriram Raghunathan [email protected]:
Hi,
Is it possible to get the details of the hostname on which the nodes are running?
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/eProsima/Fast-RTPS/issues/293
@richiware Can you explain how to get the remote IP - I would like to add it to my logs
This information is shared between participants in the discovery phase, but I've realized it is not offered to the user. Commit 13fd15ce02b722a86f0db4d9a47d7ec769aa8e3c will solve it and it is included in next release 1.7.0.
I hope this help you. I close the issue. If you have some problem feel free to reopen it.
If I want to get the IP address of the remote participant just discovered, which locator list should I be looking in? (meta traffic unicast, meta traffic multicast, default unicast, default multicast?)
@richiware Similar question, I can see the code has been added, but how can I access the properties? I'd like to get the IP address for the remote publisher.
You should be able to get that information using default unicast locator list.