[erlang-questions] econnrefused on gen_tcp:connect

Robert Raschke rtrlists@REDACTED
Tue Feb 1 13:49:54 CET 2011


On Tue, Feb 1, 2011 at 12:36 PM, Alexey Romanov
<alexey.v.romanov@REDACTED>wrote:

> I am getting {error,econnrefused} on any call to gen_tcp:connect even
> though 1) epmd is running and epmd -names returns the correct result;
> 2) ping works fine.
>
> # HOME=/mware/cookie erts-5.8.1/bin/erl -sname aname
> Eshell V5.8.1  (abort with ^G)
> (aname@REDACTED)1> gen_tcp:connect("localhost", 1234, []).
> {error,econnrefused}
>
> Same result for {127,0,0,1}, other computers on the network, etc.
>
>
Do you have a server listening on port 1234?

Robby


More information about the erlang-questions mailing list