If I start my single node application the ping succeeds on the default EPMD port 4369. If I now change the port with ERL_EPMD_PORT: 44370
to a different one I'm not able to connect to it anymore. EPMD is listening on 44370. After some debugging I found out that the following ping code halts my application due to the pang
handling. I excepted pong here.
Ping Code:
net_adm:ping(TargetNode) --> pang
Note: I know that the cluster requires to use the same EPMD port to work in cluster mode. But I'm not so far in that the Node is ready to connect to others. It already halts on pinging itself. On the other hand everything works fine if the default port is used.
It seems like net_adm:ping(Host)
doesn't use the env variable ERL_EPMD_PORT
for pinging am I right about that? Or where could be the problem here?