[erlang-questions] Erlang connect by external ip address
Adrian Roe
ARoe@REDACTED
Mon Jan 17 19:19:27 CET 2011
Again a little while since I’ve been here, but I suspect you need to explicitly listen on all IP addresses adding {ip, “0.0.0.0”} to your options. That and make certain that you don’t have a firewall / routing issue blocking traffic to your public IP on your port.
Adrian
From: erlang-questions@REDACTED [mailto:erlang-questions@REDACTED] On Behalf Of Robert Raschke
Sent: 17 January 2011 17:57
To: shk
Cc: erlang-questions@REDACTED
Subject: Re: [erlang-questions] Erlang connect by external ip address
On Mon, Jan 17, 2011 at 5:37 PM, shk <kuleshovmail@REDACTED<mailto:kuleshovmail@REDACTED>> wrote:
>
> I write simple server application in erlang.
>
> Code of this application: https://gist.github.com/783117
>
> I try to connect to it with telnet. When I connect to localhost or local ip
> addres which get from route it's ok, but when i try to connect to server
> with external ip it's don't work.
>
> What's wrong? <erlang-questions-unsubscribe@REDACTED<mailto:erlang-questions-unsubscribe@REDACTED>>
>
>
Not 100% sure, but I think inet or inet6 should be part of your
gen_tcp:listen/2 option list.
Robby
________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 10.0.1191 / Virus Database: 1435/3386 - Release Date: 01/17/11
More information about the erlang-questions
mailing list