Hello Erlang list,<br> <br>I need some helps, I am trying to make <i>Cowboy</i> working in Virtual machine on <i>ERLANG R16B</i> but <br><br>If I configure <i>Cowboy</i> without IP binding it work but only on localhost (no external acces)<br>
<br> as root, if I bind an IP it work only on PORT 80 and not for other port (tryed 8000 8080 etc..) <br><br>Cowboy parameters (trying demo web_server with IP ,no IP, and different ports)<br> {ok, _} = cowboy:start_http(http, 100, [{ip,{0,0,0,0}},{port, 8088}], <br>
<br>run with : erl -pa ebin deps/*/ebin -s web_server -smp disable (only one core / smp or not doesn't change thing) <br> <br>Is there a known problem with Erlang R16B on Virtual machine ? A binding problem on virtual net ? a cowboy problem ? A mistake from myself ? <br>
<br><br>below some parameters <br><br>If you have any clues, thank's for your help<br>Best regards,<br>Yvan<br>
<br><br>(the VPS used <a href="http://www.lws.fr/serveur_dedie_virtuel.php" target="_blank">http://www.lws.fr/serveur_dedie_virtuel.php</a>)<br><br>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 <br>
<br><br><i><b>ifconfig</b></i><br>venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 <br> inet addr:91.234.194.186 P-t-P:91.234.194.186 Bcast:0.0.0.0 Mask:255.255.255.255<br>
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1<br>
<i><b><br>iptables -S </b></i> (no rules)<br>-P INPUT ACCEPT<br>-P FORWARD ACCEPT<br>-P OUTPUT ACCEPT<br><br><i><b>netstat</b></i> <br><b>start COWBOY port 80 as root (WORK)</b><br><i>tcp 0 0 vps11621.lws-hosti:http 94.53.103.84.rev.:33286 TIME_WAIT <br>
tcp 0 176 vps11621.lws-hostin:ssh 94.53.103.84.rev.:51806 ESTABLISHED<br>tcp 0 0 vps11621.lws-hosti:http 94.53.103.84.rev.:33285 TIME_WAIT <br>tcp 0 0 vps11621.lws-hostin:ssh 94.53.103.84.rev.:46236 ESTABLISHED</i><br>
<br><b>start COWBOY on port 8080 as root</b><br><i>tcp 0 0 localhost.lo:submission *:* LISTEN <br>tcp 0 176 vps11621.lws-hostin:ssh 94.53.103.84.rev.:51806 ESTABLISHED<br>tcp 0 0 vps11621.lws-hostin:ssh 94.53.103.84.rev.:46236 ESTABLISHED<br>
tcp6 0 0 [::]:ssh [::]:* LISTEN </i><br><br><br><br clear="all"><br>-- <br><font style="font-size:12.666666984558105px;font-family:arial,sans-serif" color="#000099">------------------------------------------------------------</font><div style="color:rgb(136,136,136);font-size:12.666666984558105px;font-family:arial,sans-serif">
<font color="#000099"> Yvan Godin</font></div><div style="color:rgb(136,136,136);font-size:12.666666984558105px;font-family:arial,sans-serif"><span style="color:rgb(0,0,153);background-color:transparent;font-size:12.666666984558105px">------------------------------------------------------------ </span></div>