[erlang-patches] erl_call can now use an IP address for remote node name

Björn Gustavsson <>
Mon Oct 4 15:22:14 CEST 2010

On Thu, Sep 23, 2010 at 1:46 PM, Julien Barbot <> wrote:
> Hi,
> erl_call was not able to connect to a remote node when the specified node
> with -name contained an IP address.
> The previous inet_addr/htonl calls were not working with ip addresses.
> Here is the small patch:
> git fetch git://github.com/klyr/otp.git erl_call_get_hostent

The build fails on Windows like this:

cc.sh -MD -O2 -Wall -I. -I../include -Iconnect -Iencode -Idecode
-Imisc -Iepmd -Iregistry -Iwin32   -Ilegacy -DWIN32_THREADS
-D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -o
prog/erl_call.c prog/erl_start.c \

-lei_md   -lsocket
erl_call.o : error LNK2019: unresolved external symbol _inet_pton
referenced in function _get_hostent
: fatal error LNK1120: 1 unresolved externals

I will drop the branch from pu.

Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the erlang-patches mailing list