I solved this problem by running the process on node and receiving a message about sending a message containing its IP addresses. If anyone knows a more elegant solution, I would like to hear it.
The command I used to get the address after starting the node process was this: inet:getif() . Keep in mind that the result of this command includes the return address.
Keep in mind that each node can have several IP addresses, and the SCTP server may not listen to all of them.
Another idea that I was thinking about trying is to convert the atom returned from node () to a string, parse the string to get the host name, and do a DNS lookup. It might work, but I never tried. The DNS lookup result must be cached, so there may not be a round-trip network. Also, I really hate to suggest anything about returning an atom from node ().
mjcopple
source share