[erlang-questions] Erlang and Cowboy network problem

Yvan Godin <>
Sun Mar 17 20:22:05 CET 2013


Hello Erlang list,

I need some helps, I am trying to make *Cowboy* working in Virtual machine
on *ERLANG R16B* but

If I configure *Cowboy* without IP binding it work but only on localhost
(no external acces)

as root, if I bind an IP it work only on PORT 80 and not for other port
(tryed 8000 8080 etc..)

Cowboy parameters (trying demo web_server with IP ,no IP, and different
ports)
        {ok, _} = cowboy:start_http(http, 100, [{ip,{0,0,0,0}},{port,
8088}],

run with :    erl -pa ebin deps/*/ebin -s web_server -smp disable  (only
one core / smp or not doesn't change thing)

Is there a known problem with Erlang R16B on Virtual machine ? A binding
problem on virtual net ? a cowboy problem ? A mistake from myself ?


below some parameters

If you have any clues, thank's for your help
Best regards,
Yvan


(the VPS used  http://www.lws.fr/serveur_dedie_virtuel.php)

The machine has been reintalled on UBUNTU 12.10 and Erlang R16B. But  was
previously working with DEBIAN 6 and NITROGEN on Erlang R15B over Cowboy


*ifconfig*
venet0:0  Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:91.234.194.186  P-t-P:91.234.194.186  Bcast:0.0.0.0
Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
*
iptables -S * (no rules)
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

*netstat*
*start COWBOY port 80 as root   (WORK)*
*tcp        0      0 vps11621.lws-hosti:http 94.53.103.84.rev.:33286
TIME_WAIT
tcp        0    176 vps11621.lws-hostin:ssh 94.53.103.84.rev.:51806
ESTABLISHED
tcp        0      0 vps11621.lws-hosti:http 94.53.103.84.rev.:33285
TIME_WAIT
tcp        0      0 vps11621.lws-hostin:ssh 94.53.103.84.rev.:46236
ESTABLISHED*

*start COWBOY on port 8080 as root*
*tcp        0      0 localhost.lo:submission *:*
LISTEN
tcp        0    176 vps11621.lws-hostin:ssh 94.53.103.84.rev.:51806
ESTABLISHED
tcp        0      0 vps11621.lws-hostin:ssh 94.53.103.84.rev.:46236
ESTABLISHED
tcp6       0      0 [::]:ssh                [::]:*
LISTEN   *




-- 
------------------------------------------------------------
              Yvan Godin
------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130317/2c47b4ca/attachment.html>


More information about the erlang-questions mailing list