Erlang Mailing Lists

Author Message

<  Erlang  ~  Port problems

paladi
Posted: Tue Oct 23, 2007 3:30 pm Reply with quote
Joined: 10 Sep 2007 Posts: 2 Location: Sweden
Hi!

I am trying to write a TCP server, mostly using a gen_tcp behaviour. The problem is that I can not start to "listen", apparently because the application can not open the port (just my guess);

Generally, the question is: what does "error,eacces" mean?...the answer should ginve me some hints to find a solution...

I am using Ubuntu 7.04; no firewalls (disabled iptables that were enabled by default); exactly the same code works fine on other machines;

I get the following error:

=ERROR REPORT==== 23-Oct-2007::17:03:39 ===
Error in process <0.47.0> with exit value: {{badmatch,{error,eacces}},[{server,listen,1},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}

** exited: {{badmatch,{error,eacces}},
[{server,listen,1},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **


any good ideas?

Thanks!
View user's profile Send private message
anderst
Posted: Wed Oct 24, 2007 3:31 pm Reply with quote
User Joined: 21 Nov 2006 Posts: 37
What port number are you trying to open? Some OS do not allow you to listen on a range of ports.

Hilsen,
Anders
View user's profile Send private message Visit poster's website
paladi
Posted: Wed Oct 24, 2007 7:12 pm Reply with quote
Joined: 10 Sep 2007 Posts: 2 Location: Sweden
You were right -- seems like the OS didn't want to open the port that I wanted, i.e. I couldn't open a port under 1024...

Trying other ports helped. Thanks for the great idea!

Nico
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum