<p>Ok, thank you<br>
Le 7 mars 2012 19:37, "Klaus Espenlaub" <<a href="mailto:klaus.espenlaub@oracle.com">klaus.espenlaub@oracle.com</a>> a écrit :<br>
><br>
> On 07.03.2012 17:56, Johan Roussay wrote:<br>
> > So, I have my web server wich contain the API code, its IP is 10.21.2.81.<br>
> > I try to access to a vboxwebsrv instance running on a machine A with the IP 10.21.2.71.<br>
> > I launch vboxwebsrv on A with the option --host 10.21.2.81 (or in the /etc/default/virtualbox, I guess it's the same).<br>
> > Then from the web server I try, without success, to connect to <a href="http://10.21.2.71:18083">10.21.2.71:18083</a><br>
><br>
> Misunderstanding obviously... with --host you must specify the IP<br>
> address of the system where vboxwebsrv is running, in your case 10.21.2.71.<br>
><br>
> It's the wrong place to discuss the details of how the network API in<br>
> most of today's OSes is ticking, and vboxwebsrv isn't different from the<br>
> other pieces of software which deal with network traffic.<br>
><br>
> In general, if you want the webservice to accept connections on all<br>
> interfaces, you can also specify 0.0.0.0.<br>
><br>
> Klaus<br>
><br>
> ><br>
> > Le 7 mars 2012 à 17:15, Frank Mehnert a écrit :<br>
> ><br>
> >> Hmm, if you set VBOXWEB_HOST in /etc/default/virtualbox then the<br>
> >> '-H' parameter is passed to vboxwebsrv which is equivalent to '--host'.<br>
> >><br>
> >> Frank<br>
> >><br>
> >> On Wednesday 07 March 2012 16:52:27 Johan Roussay wrote:<br>
> >>> Sorry !<br>
> >>><br>
> >>> vboxwebsrv --host 10.10.10.10<br>
> >>><br>
> >>> It looks like not to read the conf file ...<br>
> >>><br>
> >>> Le 7 mars 2012 à 16:34, Frank Mehnert a écrit :<br>
> >>>> PLEASE,<br>
> >>>><br>
> >>>> could you reply to the mailing list and not directly to me? Thank you!<br>
> >>>> Which exact host IP option did you specify when it failed?<br>
> >>>><br>
> >>>> Frank<br>
> >>>><br>
> >>>> On Wednesday 07 March 2012 16:28:19 Johan Roussay wrote:<br>
> >>>>> Hi Frank,<br>
> >>>>> IP I specified is the web server with witch I  try to connect. But when<br>
> >>>>> I launch vboxwebsrv I have the following output : Socket connection<br>
> >>>>> successful: host = default (localhost), …<br>
> >>>>><br>
> >>>>> When i specify the host option in the command line, it says :<br>
> >>>>>   ###SAUP FAULT : Cannot assign request address [SAUP-ENV:Server]<br>
> >>>>><br>
> >>>>> Le 7 mars 2012 à 16:05, Frank Mehnert a écrit :<br>
> >>>>>> Hi Johan,<br>
> >>>>>><br>
> >>>>>> On Wednesday 07 March 2012 15:40:44 Johan ROUSSAY wrote:<br>
> >>>>>>> Dear all,<br>
> >>>>>>> I am trying to connect to the virtualbox webservice (vboxwebsrv) on a<br>
> >>>>>>> remote server with the java api. The problem is that the connection is<br>
> >>>>>>> refused (same with a web browser). The connection works locally<br>
> >>>>>>> (localhost: 18083 send me the xml).<br>
> >>>>>>><br>
> >>>>>>> I edited /etc/default/virtualbox on remote machines like this:<br>
> >>>>>>> VBOXWEB_USER=user group virtualbox<br>
> >>>>>>> VBOXWEB_HOST=ip of the computer that I want to access virtualbox<br>
> >>>>>>><br>
> >>>>>>> I'm on a debian, without firewall ...<br>
> >>>>>>><br>
> >>>>>>> Any idea?<br>
> >>>>>><br>
> >>>>>> are you sure that you specified the correct IP, that is, the one<br>
> >>>>>> which you are trying to connect to from the remote host? By default,<br>
> >>>>>> the webservice server binds to localhost but the VBOXWEB_HOST<br>
> >>>>>> parameter should make this work for remote connections ...<br>
> >>>>>><br>
> >>>>>> Kind regards,<br>
> >>>>>><br>
> >>>>>> Frank<br>
> >>><br>
> >>> _______________________________________________<br>
> >>> vbox-dev mailing list<br>
> >>> <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
> >>> <a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
> >><br>
> >> --<br>
> >> Dr.-Ing. Frank Mehnert<br>
> >> Senior Manager Software Development Desktop Virtualization, VirtualBox<br>
> >> ORACLE Deutschland B.V.&  Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany<br>
> >><br>
> >> Hauptverwaltung: Riesstr. 25, D-80992 München<br>
> >> Registergericht: Amtsgericht München, HRA 95603<br>
> >><br>
> >> Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
> >> Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
> >> Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>
> >> Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven<br>
> >> _______________________________________________<br>
> >> vbox-dev mailing list<br>
> >> <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
> >> <a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > vbox-dev mailing list<br>
> > <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
> > <a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
><br>
><br>
> --<br>
> Oracle <<a href="http://www.oracle.com">http://www.oracle.com</a>><br>
> Dr. Klaus Espenlaub | Snr. Manager Software Development Desktop<br>
> Virtualization<br>
> Phone: +49 7151 60405 205 <tel:+49715160405205><br>
> Oracle VM VirtualBox<br>
><br>
> ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt<br>
><br>
> ORACLE Deutschland B.V. & Co. KG<br>
> Hauptverwaltung: Riesstr. 25, D-80992 München<br>
> Registergericht: Amtsgericht München, HRA 95603<br>
> Geschäftsführer: Jürgen Kunz<br>
><br>
> Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
> Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
> Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>
> Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher<br>
><br>
> Green Oracle <<a href="http://www.oracle.com/commitment">http://www.oracle.com/commitment</a>>         Oracle is committed to<br>
> developing practices and products that help protect the environment<br>
><br>
><br>
> _______________________________________________<br>
> vbox-dev mailing list<br>
> <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
> <a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</p>