net_adm:ping not working -- still not answered

erlang <>
Fri Sep 1 01:52:27 CEST 2006


The status of this is that a couple of people have tried to help me to no avail.
None of you appear to use Windows(tm). Everything looks right, but the ping 
function just does not seem to be able to resolve the host name. I've simplified 
the test case down to 'a' and 'b' nodes on localhost. I can't ping from 'a' to 'b'.

net_adm:ping(''). from console 'a' always returns pang. There are no
details, error messages or logs that I am aware of.

inet:gethostbyname('my-server'). 

returns {error,timeout}

epmd looks perfect.

J:\Program Files\erl5.5.1\erts-5.5.1\bin>epmd -names
epmd: up and running on port 4369 with data:
name b at port 1443
name a at port 1439

Using erl with long paths results in a crash dump from the erlang console. 

I can 

inet:gethostname().

ok, but 

net_adm:dns_hostname('my-server'). 

fails.

I am testing on Windows Server 2003 on localhost with no local DNS server,
no domain controller, etc. Ordinarily my system can open sockets on localhost
and do just about everything.

Perhaps you can see what's going on.




> > Sorry, this is indeed a typo in my email. Should be:
> > ()1> net_adm:ping('').
> > 
> > > 
> > > Hi, is the colon ":" just a typo in your email? It should be
> > > "@" as you can see from the node name in the Erlang shell prompt.
> > > 
> > > Best Regards
> > > Lennart
> > > 
> > > > ()1> net_adm:ping('a:my-server').
> > > 
> > > > I can't get the ping-pong distributed example to work, so I tried simply
> > > > pinging another node. This doesn't work either.
> > > > 
> > > > os: windows server 2003, machine name is my-server.
> > > > EShell v5.5.1
> > > > 
> > > > command lines: erl -sname a
> > > >                             erl -sname b
> > > > 
> > > > ()1> net_adm:ping('a:my-server').
> > > > 
> > > > always returns pang. The cookie file is being read, and the cookie is
> > > > the same in both nodes. What to try next?
> > > > 
> > > > 
> > > > 
> > 
 
> > > > 
> > > > 






More information about the erlang-questions mailing list