Hi guys,
I’d like connect to a shortname node from my local longname node. Both are running on different machines (same network).
I couldn’t using net_adm:ping/1
.
Is there any other way, documented or not?
Thanks
Hi guys,
I’d like connect to a shortname node from my local longname node. Both are running on different machines (same network).
I couldn’t using net_adm:ping/1
.
Is there any other way, documented or not?
Thanks
Right, you can not do this. Straight from the docs :
A node with a long node name cannot communicate with a node with a short node name.
https://www.erlang.org/doc/reference_manual/distributed.html
There is no documented (and therefore supported) way to do so.
Here is code pointer.
It is however still possible if you’re really determined… For that you’d need to make an “Alternative Distribution Carrier” that does not enforce long/short names convention.
This looks like a pretty tedious and hard thing to do, easy to get very wrong, and which requires changes in both nodes… which raises the question, why do you want to do that, anyway? I mean, why not simply make the shortname node use long names?