You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by tina wang <ti...@oracle.com> on 2016/08/29 10:38:26 UTC
question about cannot connect guacd directly in java class by using
GuacamoleSocket
Hi There:
I read Writing your own Guacamole application
<http://guacamole.incubator.apache.org/doc/gug/writing-you-own-guacamole-app.html>
to create a dummy web application, but it fail when connect guacd with
the error: Connection refused: connect
I can confirm guacd is started, because I can connect using
guacamole own webapplication. do you know why the connecton is refused.
I need provide authentication? if so, how? Any comments would be very
appreciated.
Regards
-Tina
Re: question about cannot connect guacd directly in java class by
using GuacamoleSocket
Posted by Mike Jumper <mi...@guac-dev.org>.
On Mon, Aug 29, 2016 at 3:38 AM, tina wang <ti...@oracle.com> wrote:
> Hi There:
>
> I read Writing your own Guacamole application
> <http://guacamole.incubator.apache.org/doc/gug/writing-you-own-guacamole-app.html>
> to create a dummy web application, but it fail when connect guacd with the
> error: Connection refused: connect
>
Hi Tina,
Can you confirm that the hostname, port, etc. for the connection to
guacd are the same as you are using with the mainline web application?
> I can confirm guacd is started, because I can connect using guacamole own
> webapplication. do you know why the connecton is refused. I need provide
> authentication? if so, how? Any comments would be very appreciated.
There is no authentication for guacd. Even if there were, however, it
could not have anything to do with the error you're seeing. That error
is coming directly from Java's socket implementation and is due to the
TCP connection failing outright.
If the mainline web application does work, and you are positive that
guacd is indeed running, then the most likely reason for this failure
is that basic TCP connection information being passed to the
InetGuacamoleSocket is incorrect.
- Mike